CIRCT  19.0.0git
Public Member Functions | List of all members
circt::ExportSystemC::AttrEmissionPatternBase Struct Referenceabstract

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

#include <EmissionPattern.h>

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

Public Member Functions

 AttrEmissionPatternBase (TypeID typeId)
 
virtual ~AttrEmissionPatternBase ()=default
 
virtual bool match (Attribute attr)=0
 Checks if this pattern is applicable to the given attribute. More...
 
virtual void emitAttr (Attribute attr, EmissionPrinter &p)=0
 Emit the given attribute 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 attributes.

Definition at line 153 of file EmissionPattern.h.

Constructor & Destructor Documentation

◆ AttrEmissionPatternBase()

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

Definition at line 154 of file EmissionPattern.h.

◆ ~AttrEmissionPatternBase()

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

Member Function Documentation

◆ emitAttr()

virtual void circt::ExportSystemC::AttrEmissionPatternBase::emitAttr ( Attribute  attr,
EmissionPrinter p 
)
pure virtual

Emit the given attribute to the emission printer.

Implemented in circt::ExportSystemC::AttrEmissionPattern< A >.

◆ match()

virtual bool circt::ExportSystemC::AttrEmissionPatternBase::match ( Attribute  attr)
pure virtual

Checks if this pattern is applicable to the given attribute.

Implemented in circt::ExportSystemC::AttrEmissionPattern< A >.


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