CIRCT  20.0.0git
Public Member Functions | List of all members
circt::ExportSystemC::AttrEmissionPattern< A > Struct Template Referenceabstract

This is a convenience class providing default implementations for attribute emission patterns. More...

#include <EmissionPattern.h>

Inheritance diagram for circt::ExportSystemC::AttrEmissionPattern< A >:
Inheritance graph
[legend]
Collaboration diagram for circt::ExportSystemC::AttrEmissionPattern< A >:
Collaboration graph
[legend]

Public Member Functions

 AttrEmissionPattern ()
 
void emitAttr (Attribute attr, EmissionPrinter &p) final
 Emit the given attribute to the emission printer. More...
 
bool match (Attribute attr) override
 Checks if this pattern is applicable to the given attribute. More...
 
virtual void emitAttr (A attr, EmissionPrinter &p)=0
 Emit the given attribute to the emission printer. More...
 
- Public Member Functions inherited from circt::ExportSystemC::AttrEmissionPatternBase
 AttrEmissionPatternBase (TypeID typeId)
 
virtual ~AttrEmissionPatternBase ()=default
 
- 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

template<typename A>
struct circt::ExportSystemC::AttrEmissionPattern< A >

This is a convenience class providing default implementations for attribute emission patterns.

Definition at line 216 of file EmissionPattern.h.

Constructor & Destructor Documentation

◆ AttrEmissionPattern()

template<typename A >
circt::ExportSystemC::AttrEmissionPattern< A >::AttrEmissionPattern ( )
inline

Definition at line 217 of file EmissionPattern.h.

Member Function Documentation

◆ emitAttr() [1/2]

template<typename A >
virtual void circt::ExportSystemC::AttrEmissionPattern< A >::emitAttr ( attr,
EmissionPrinter p 
)
pure virtual

Emit the given attribute to the emission printer.

◆ emitAttr() [2/2]

template<typename A >
void circt::ExportSystemC::AttrEmissionPattern< A >::emitAttr ( Attribute  attr,
EmissionPrinter p 
)
inlinefinalvirtual

Emit the given attribute to the emission printer.

Implements circt::ExportSystemC::AttrEmissionPatternBase.

Definition at line 219 of file EmissionPattern.h.

◆ match()

template<typename A >
bool circt::ExportSystemC::AttrEmissionPattern< A >::match ( Attribute  attr)
inlineoverridevirtual

Checks if this pattern is applicable to the given attribute.

Matches to the attribute given as template argument by default.

Implements circt::ExportSystemC::AttrEmissionPatternBase.

Definition at line 225 of file EmissionPattern.h.


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