CIRCT  20.0.0git
Public Member Functions | List of all members
circt::ExportSystemC::TypeEmissionPatternBase Struct Referenceabstract

This is intended to be the base class for all emission patterns matching on types. More...

#include <EmissionPattern.h>

Inheritance diagram for circt::ExportSystemC::TypeEmissionPatternBase:
Inheritance graph
[legend]
Collaboration diagram for circt::ExportSystemC::TypeEmissionPatternBase:
Collaboration graph
[legend]

Public Member Functions

 TypeEmissionPatternBase (TypeID typeId)
 
virtual ~TypeEmissionPatternBase ()=default
 
virtual bool match (Type type)=0
 Checks if this pattern is applicable to the given type. More...
 
virtual void emitType (Type type, EmissionPrinter &p)=0
 Emit the given type to the emission printer. More...
 
- Public Member Functions inherited from circt::ExportSystemC::PatternBase
 PatternBase (const void *rootValue)
 
const void * getRootValue () const
 Get a unique identifier for the C++ type the pattern is matching on. More...
 

Additional Inherited Members

- Static Public Member Functions inherited from circt::ExportSystemC::PatternBase
template<typename E , typename... Args>
static std::unique_ptr< E > create (Args &&...args)
 

Detailed Description

This is intended to be the base class for all emission patterns matching on types.

Definition at line 139 of file EmissionPattern.h.

Constructor & Destructor Documentation

◆ TypeEmissionPatternBase()

circt::ExportSystemC::TypeEmissionPatternBase::TypeEmissionPatternBase ( TypeID  typeId)
inlineexplicit

Definition at line 140 of file EmissionPattern.h.

◆ ~TypeEmissionPatternBase()

virtual circt::ExportSystemC::TypeEmissionPatternBase::~TypeEmissionPatternBase ( )
virtualdefault

Member Function Documentation

◆ emitType()

virtual void circt::ExportSystemC::TypeEmissionPatternBase::emitType ( Type  type,
EmissionPrinter p 
)
pure virtual

Emit the given type to the emission printer.

Implemented in circt::ExportSystemC::TypeEmissionPattern< Ty >.

◆ match()

virtual bool circt::ExportSystemC::TypeEmissionPatternBase::match ( Type  type)
pure virtual

Checks if this pattern is applicable to the given type.

Implemented in circt::ExportSystemC::TypeEmissionPattern< Ty >.


The documentation for this struct was generated from the following file: