CIRCT 24.0.0git
Loading...
Searching...
No Matches
esiaccel.types.ArrayType Class Reference
Inheritance diagram for esiaccel.types.ArrayType:
Collaboration diagram for esiaccel.types.ArrayType:

Public Member Functions

 __init__ (self, str id, "ESIType" element_type, int size)
Tuple[bool, Optional[str]] is_valid (self, obj)
bytearray serialize (self, list lst)
Tuple[List[Any], bytearray] deserialize (self, bytearray data)
Public Member Functions inherited from esiaccel.types.ESIType
 __init__ (self, str id)
 wrap_cpp (cls, cpp.Type cpp_type)
str id (self)
Tuple[bool, Optional[str]] supports_host (self)
int bit_width (self)
int max_size (self)
int __hash__ (self)
bool __eq__ (self, other)
str __str__ (self)

Public Attributes

 element_type = _get_esi_type(cpp_type.element)
 size = cpp_type.size
Public Attributes inherited from esiaccel.types.ESIType
 cpp_type = cpp_type
str id

Protected Member Functions

 _init_from_cpp (self, cpp.ArrayType cpp_type)

Detailed Description

Definition at line 355 of file types.py.

Constructor & Destructor Documentation

◆ __init__()

esiaccel.types.ArrayType.__init__ ( self,
str id,
"ESIType" element_type,
int size )

Definition at line 357 of file types.py.

References esiaccel.types.ESIType._init_from_cpp().

Member Function Documentation

◆ _init_from_cpp()

esiaccel.types.ArrayType._init_from_cpp ( self,
cpp.ArrayType cpp_type )
protected
Initialize instance attributes from a C++ type object.

Reimplemented from esiaccel.types.ESIType.

Definition at line 360 of file types.py.

References _init_from_cpp().

Referenced by _init_from_cpp().

◆ deserialize()

◆ is_valid()

Tuple[bool, Optional[str]] esiaccel.types.ArrayType.is_valid ( self,
obj )

◆ serialize()

bytearray esiaccel.types.ArrayType.serialize ( self,
list obj )
Convert a Python object to a bytearray.

Reimplemented from esiaccel.types.ESIType.

Definition at line 377 of file types.py.

References element_type, and serialize().

Referenced by serialize().

Member Data Documentation

◆ element_type

esiaccel.types.ArrayType.element_type = _get_esi_type(cpp_type.element)

Definition at line 363 of file types.py.

Referenced by deserialize(), is_valid(), esiaccel.types.ListType.is_valid(), and serialize().

◆ size

esiaccel.types.ArrayType.size = cpp_type.size

Definition at line 364 of file types.py.

Referenced by deserialize(), and is_valid().


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