CIRCT  19.0.0git
Public Member Functions | List of all members
circt::ExportSystemC::TypeEmissionPattern< Ty > Struct Template Referenceabstract

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

#include <EmissionPattern.h>

Inheritance diagram for circt::ExportSystemC::TypeEmissionPattern< Ty >:
Inheritance graph
[legend]
Collaboration diagram for circt::ExportSystemC::TypeEmissionPattern< Ty >:
Collaboration graph
[legend]

Public Member Functions

 TypeEmissionPattern ()
 
void emitType (Type type, EmissionPrinter &p) final
 Emit the given type to the emission printer. More...
 
bool match (Type type) override
 Checks if this pattern is applicable to the given type. More...
 
virtual void emitType (Ty type, EmissionPrinter &p)=0
 Emit the given type to the emission printer. More...
 
- Public Member Functions inherited from circt::ExportSystemC::TypeEmissionPatternBase
 TypeEmissionPatternBase (TypeID typeId)
 
virtual ~TypeEmissionPatternBase ()=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 Ty>
struct circt::ExportSystemC::TypeEmissionPattern< Ty >

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

Definition at line 198 of file EmissionPattern.h.

Constructor & Destructor Documentation

◆ TypeEmissionPattern()

template<typename Ty >
circt::ExportSystemC::TypeEmissionPattern< Ty >::TypeEmissionPattern ( )
inline

Definition at line 199 of file EmissionPattern.h.

Member Function Documentation

◆ emitType() [1/2]

template<typename Ty >
virtual void circt::ExportSystemC::TypeEmissionPattern< Ty >::emitType ( Ty  type,
EmissionPrinter p 
)
pure virtual

Emit the given type to the emission printer.

◆ emitType() [2/2]

template<typename Ty >
void circt::ExportSystemC::TypeEmissionPattern< Ty >::emitType ( Type  type,
EmissionPrinter p 
)
inlinefinalvirtual

Emit the given type to the emission printer.

Implements circt::ExportSystemC::TypeEmissionPatternBase.

Definition at line 201 of file EmissionPattern.h.

◆ match()

template<typename Ty >
bool circt::ExportSystemC::TypeEmissionPattern< Ty >::match ( Type  type)
inlineoverridevirtual

Checks if this pattern is applicable to the given type.

Matches to the type given as template argument by default.

Implements circt::ExportSystemC::TypeEmissionPatternBase.

Definition at line 207 of file EmissionPattern.h.


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