CIRCT
20.0.0git
|
Structs are an ordered collection of fields, each with a name and a type. More...
#include <Types.h>
Public Types | |
using | FieldVector = std::vector< std::pair< std::string, const Type * > > |
Public Types inherited from esi::Type | |
using | ID = std::string |
Public Member Functions | |
StructType (const ID &id, const FieldVector &fields) | |
const FieldVector & | getFields () const |
std::ptrdiff_t | getBitWidth () const override |
Public Member Functions inherited from esi::Type | |
Type (const ID &id) | |
virtual | ~Type ()=default |
ID | getID () const |
Private Attributes | |
FieldVector | fields |
Additional Inherited Members | |
Protected Attributes inherited from esi::Type | |
ID | id |
Structs are an ordered collection of fields, each with a name and a type.
using esi::StructType::FieldVector = std::vector<std::pair<std::string, const Type *> > |
|
inline |
|
inlineoverridevirtual |
|
inline |
Definition at line 137 of file Types.h.
References fields.
Referenced by getBitWidth(), and PYBIND11_MODULE().
|
private |
Definition at line 150 of file Types.h.
Referenced by esiaccel.types.StructType::bit_width(), esiaccel.types.StructType::deserialize(), getFields(), esiaccel.types.StructType::is_valid(), and esiaccel.types.StructType::serialize().