CIRCT 23.0.0git
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | Protected Member Functions | List of all members
esiaccel.types.UnionType Class Reference
Inheritance diagram for esiaccel.types.UnionType:
Inheritance graph
[legend]
Collaboration diagram for esiaccel.types.UnionType:
Collaboration graph
[legend]

Public Member Functions

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

Public Attributes

 fields
 
- Public Attributes inherited from esiaccel.types.ESIType
 cpp_type
 
 id
 

Protected Member Functions

 _init_from_cpp (self, cpp.UnionType cpp_type)
 

Detailed Description

Definition at line 519 of file types.py.

Constructor & Destructor Documentation

◆ __init__()

esiaccel.types.UnionType.__init__ (   self,
str  id,
List[Tuple[str, "ESIType"]]  fields 
)

Member Function Documentation

◆ _init_from_cpp()

esiaccel.types.UnionType._init_from_cpp (   self,
cpp.UnionType  cpp_type 
)
protected

◆ bit_width()

int esiaccel.types.UnionType.bit_width (   self)

◆ deserialize()

Tuple[Dict[str, Any], bytearray] esiaccel.types.UnionType.deserialize (   self,
bytearray  data 
)

◆ is_valid()

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

◆ serialize()

bytearray esiaccel.types.UnionType.serialize (   self,
  obj 
)

Member Data Documentation

◆ fields

esiaccel.types.UnionType.fields

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