CIRCT 22.0.0git
Loading...
Searching...
No Matches
Public Member Functions | Private Attributes | List of all members
esi::ListType Class Reference

Lists represent variable-length sequences of elements of a single type. More...

#include <Types.h>

Inheritance diagram for esi::ListType:
Inheritance graph
[legend]
Collaboration diagram for esi::ListType:
Collaboration graph
[legend]

Public Member Functions

 ListType (const ID &id, const Type *elementType)
 
const TypegetElementType () 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 TypeelementType
 

Additional Inherited Members

- Public Types inherited from esi::Type
using ID = std::string
 
- Protected Attributes inherited from esi::Type
ID id
 

Detailed Description

Lists represent variable-length sequences of elements of a single type.

Unlike arrays which have a fixed size, lists can have any length.

Definition at line 319 of file Types.h.

Constructor & Destructor Documentation

◆ ListType()

esi::ListType::ListType ( const ID id,
const Type elementType 
)
inline

Definition at line 321 of file Types.h.

Member Function Documentation

◆ getBitWidth()

std::ptrdiff_t esi::ListType::getBitWidth ( ) const
inlineoverridevirtual

Reimplemented from esi::Type.

Definition at line 326 of file Types.h.

◆ getElementType()

const Type * esi::ListType::getElementType ( ) const
inline

Definition at line 324 of file Types.h.

References elementType.

Referenced by containsWindowType().

Member Data Documentation

◆ elementType

const Type* esi::ListType::elementType
private

Definition at line 329 of file Types.h.

Referenced by getElementType().


The documentation for this class was generated from the following file: