Cerata
A library to generate structural hardware designs
cerata::FlatType Struct Reference

A flattened type. More...

#include <flattype.h>

+ Collaboration diagram for cerata::FlatType:

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

Typetype_ = nullptr
 A pointer to the original type.
 
int nesting_level_ = 0
 Nesting level in a type hierarchy.
 
std::vector< NamePartname_parts_
 Name parts of this flattened type.
 
bool reverse_ = false
 Whether to invert this flattened type if it would be on a terminator node.
 

Detailed Description

A flattened type.

Definition at line 51 of file flattype.h.


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