Cerata
A library to generate structural hardware designs
|
A flattened type. More...
#include <flattype.h>
Public Member Functions | |
FlatType (Type *t, std::vector< NamePart > prefix, const std::string &name, bool invert) | |
Construct a FlatType. | |
std::string | name (const NamePart &root=NamePart(), const std::string &sep="_") const |
Return the name of this flattened type, constructed from the name parts. | |
Public Attributes | |
Type * | type_ = nullptr |
A pointer to the original type. | |
int | nesting_level_ = 0 |
Nesting level in a type hierarchy. | |
std::vector< NamePart > | name_parts_ |
Name parts of this flattened type. | |
bool | reverse_ = false |
Whether to invert this flattened type if it would be on a terminator node. | |
A flattened type.
Definition at line 51 of file flattype.h.