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

Classes

class  Field
 
class  Frame
 

Public Member Functions

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

Public Attributes

 name
 
 into_type
 
 lowered_type
 
 frames
 
- Public Attributes inherited from esiaccel.types.ESIType
 cpp_type
 
 id
 

Protected Member Functions

 _init_from_cpp (self, cpp.WindowType cpp_type)
 

Protected Attributes

 _HOST_UNSUPPORTED_REASON
 

Static Protected Attributes

tuple _HOST_UNSUPPORTED_REASON
 

Detailed Description

Definition at line 458 of file types.py.

Constructor & Destructor Documentation

◆ __init__()

esiaccel.types.WindowType.__init__ (   self,
str  id,
str  name,
"ESIType"  into_type,
"ESIType"  lowered_type,
List["WindowType.Frame"]  frames 
)

Member Function Documentation

◆ _init_from_cpp()

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

◆ bit_width()

int esiaccel.types.WindowType.bit_width (   self)

◆ deserialize()

Tuple[object, bytearray] esiaccel.types.WindowType.deserialize (   self,
bytearray  data 
)
Convert a bytearray to a Python object. Return the object and the
leftover bytes.

Reimplemented from esiaccel.types.ESIType.

Definition at line 512 of file types.py.

References esiaccel.types.WindowType._HOST_UNSUPPORTED_REASON.

◆ is_valid()

Tuple[bool, Optional[str]] esiaccel.types.WindowType.is_valid (   self,
  obj 
)
Is a Python object compatible with HW type?  Returns either '(True,
None)' if it is, or '(False, reason)' if it is not.

Reimplemented from esiaccel.types.ESIType.

Definition at line 506 of file types.py.

References esiaccel.types.WindowType._HOST_UNSUPPORTED_REASON.

◆ serialize()

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

Reimplemented from esiaccel.types.ESIType.

Definition at line 509 of file types.py.

References esiaccel.types.WindowType._HOST_UNSUPPORTED_REASON.

◆ supports_host()

Tuple[bool, Optional[str]] esiaccel.types.WindowType.supports_host (   self)
Does this type support host communication via Python? Returns either
'(True, None)' if it is, or '(False, reason)' if it is not.

Reimplemented from esiaccel.types.ESIType.

Definition at line 499 of file types.py.

Member Data Documentation

◆ _HOST_UNSUPPORTED_REASON [1/2]

tuple esiaccel.types.WindowType._HOST_UNSUPPORTED_REASON
staticprotected
Initial value:
= (
"window types require into/lowered translation and are not yet "
"supported for host communication")

Definition at line 460 of file types.py.

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

◆ _HOST_UNSUPPORTED_REASON [2/2]

esiaccel.types.WindowType._HOST_UNSUPPORTED_REASON
protected

◆ frames

esiaccel.types.WindowType.frames

Definition at line 491 of file types.py.

◆ into_type

esiaccel.types.WindowType.into_type

Definition at line 489 of file types.py.

◆ lowered_type

esiaccel.types.WindowType.lowered_type

Definition at line 490 of file types.py.

Referenced by esiaccel.types.WindowType.bit_width().

◆ name

esiaccel.types.WindowType.name

Definition at line 488 of file types.py.

Referenced by esiaccel.types.TypeAlias.__str__().


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