CIRCT 24.0.0git
Loading...
Searching...
No Matches
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 >:
Collaboration diagram for circt::ExportSystemC::TypeEmissionPattern< Ty >:

Public Member Functions

 TypeEmissionPattern ()
void emitType (Type type, EmissionPrinter &p) final
 Emit the given type to the emission printer.
bool match (Type type) override
 Checks if this pattern is applicable to the given type.
virtual void emitType (Ty type, EmissionPrinter &p)=0
 Emit the given type to the emission printer.
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.

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

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.

References emitType().

Referenced by emitType().

◆ 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: