|
CIRCT 22.0.0git
|
Lists represent variable-length sequences of elements of a single type. More...
#include <Types.h>


Public Member Functions | |
| ListType (const ID &id, const Type *elementType) | |
| const Type * | getElementType () const |
| std::ptrdiff_t | getBitWidth () const override |
Public Member Functions inherited from esi::Type | |
| Type (const ID &id) | |
| virtual | ~Type ()=default |
| ID | getID () const |
| virtual MutableBitVector | serialize (const std::any &obj) const |
| Serialize an object to a MutableBitVector (LSB-first stream). | |
| virtual std::any | deserialize (BitVector &data) const |
| Deserialize from a BitVector stream (LSB-first). | |
| std::any | deserialize (const MessageData &data) const |
| virtual void | ensureValid (const std::any &obj) const |
| Ensure that a std::any object is valid for this type. | |
| std::optional< std::string > | isValid (const std::any &obj) const |
| void | dump (std::ostream &os, bool oneLine=false) const |
| std::string | toString (bool oneLine=false) const |
Private Attributes | |
| const Type * | elementType |
Additional Inherited Members | |
Public Types inherited from esi::Type | |
| using | ID = std::string |
Protected Attributes inherited from esi::Type | |
| ID | id |
Lists represent variable-length sequences of elements of a single type.
Unlike arrays which have a fixed size, lists can have any length.
|
inlineoverridevirtual |
|
inline |
|
private |
Definition at line 329 of file Types.h.
Referenced by getElementType().