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

Classes

class  Channel

Public Member Functions

 __init__ (self, str id, List[Channel] channels)
List["BundleType.Channel"] channels (self)
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)
Tuple[bool, Optional[str]] is_valid (self, obj)
int bit_width (self)
int max_size (self)
bytearray serialize (self, obj)
Tuple[object, bytearray] deserialize (self, bytearray data)
int __hash__ (self)
bool __eq__ (self, other)
str __str__ (self)

Protected Member Functions

 _init_from_cpp (self, cpp.BundleType cpp_type)

Protected Attributes

list _channels

Additional Inherited Members

Public Attributes inherited from esiaccel.types.ESIType
 cpp_type = cpp_type
str id

Detailed Description

Definition at line 137 of file types.py.

Constructor & Destructor Documentation

◆ __init__()

esiaccel.types.BundleType.__init__ ( self,
str id,
List[Channel] channels )

Definition at line 144 of file types.py.

References esiaccel.types.ESIType._init_from_cpp().

Member Function Documentation

◆ _init_from_cpp()

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

Reimplemented from esiaccel.types.ESIType.

Definition at line 149 of file types.py.

References _init_from_cpp().

Referenced by _init_from_cpp().

◆ channels()

List["BundleType.Channel"] esiaccel.types.BundleType.channels ( self)

Definition at line 157 of file types.py.

References _channels.

Member Data Documentation

◆ _channels

list esiaccel.types.BundleType._channels
protected
Initial value:
= [
BundleType.Channel(name, direction, _get_esi_type(channel_type))
for name, direction, channel_type in cpp_type.channels
]

Definition at line 151 of file types.py.

Referenced by channels().


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