pyGHDL.dom.Type¶
Classes
IncompleteType:BaseTypeis the base-class of all type entities in this model.EnumeratedType: AScalarTypeis a base-class for all scalar types.IntegerType: ARangedScalarTypeis a base-class for all scalar types with a range.PhysicalType: ARangedScalarTypeis a base-class for all scalar types with a range.ArrayType: ACompositeTypeis a base-class for all composite types.RecordTypeElement:ModelEntityis the base-class for all classes in the VHDL language model, except for mixin classes (see multipleRecordType: ACompositeTypeis a base-class for all composite types.ProtectedType:BaseTypeis the base-class of all type entities in this model.ProtectedTypeBody:BaseTypeis the base-class of all type entities in this model.AccessType:BaseTypeis the base-class of all type entities in this model.FileType:BaseTypeis the base-class of all type entities in this model.Subtype:BaseTypeis the base-class of all type entities in this model.
Classes
- class pyGHDL.dom.Type.IncompleteType(node, identifier)[source]¶
Inheritance
- Parameters:
node (Iir) –
identifier (str) –
- __init__(node, identifier)[source]¶
Initializes underlying
BaseType.- Parameters:
identifier (
str) – Name of the type.node (Iir) –
- property Identifier: str¶
Returns a model entity’s identifier (name).
- Return type:
- Returns:
Name of a model entity.
- property Parent: ModelEntity¶
Returns a reference to the parent entity.
- Return type:
- Returns:
Parent entity.
- _parent: ModelEntity¶
Reference to a parent entity in the model.
- class pyGHDL.dom.Type.EnumeratedType(node, identifier, literals)[source]¶
Inheritance
- Parameters:
node (Iir) –
identifier (str) –
literals (List[EnumerationLiteral]) –
- __init__(node, identifier, literals)[source]¶
Initializes underlying
BaseType.- Parameters:
identifier (
str) – Name of the type.node (Iir) –
literals (List[EnumerationLiteral]) –
- property Identifier: str¶
Returns a model entity’s identifier (name).
- Return type:
- Returns:
Name of a model entity.
- property Parent: ModelEntity¶
Returns a reference to the parent entity.
- Return type:
- Returns:
Parent entity.
- _parent: ModelEntity¶
Reference to a parent entity in the model.
- class pyGHDL.dom.Type.IntegerType(node, typeName, rng)[source]¶
Inheritance
- property Identifier: str¶
Returns a model entity’s identifier (name).
- Return type:
- Returns:
Name of a model entity.
- property Parent: ModelEntity¶
Returns a reference to the parent entity.
- Return type:
- Returns:
Parent entity.
- _parent: ModelEntity¶
Reference to a parent entity in the model.
- class pyGHDL.dom.Type.PhysicalType(node, typeName, rng, primaryUnit, units)[source]¶
Inheritance
- Parameters:
- property Identifier: str¶
Returns a model entity’s identifier (name).
- Return type:
- Returns:
Name of a model entity.
- property Parent: ModelEntity¶
Returns a reference to the parent entity.
- Return type:
- Returns:
Parent entity.
- _parent: ModelEntity¶
Reference to a parent entity in the model.
- class pyGHDL.dom.Type.ArrayType(node, identifier, indices, elementSubtype)[source]¶
Inheritance
- Parameters:
- property Identifier: str¶
Returns a model entity’s identifier (name).
- Return type:
- Returns:
Name of a model entity.
- property Parent: ModelEntity¶
Returns a reference to the parent entity.
- Return type:
- Returns:
Parent entity.
- _parent: ModelEntity¶
Reference to a parent entity in the model.
- class pyGHDL.dom.Type.RecordTypeElement(node, identifiers, subtype)[source]¶
Inheritance
- property Parent: ModelEntity¶
Returns a reference to the parent entity.
- Return type:
- Returns:
Parent entity.
- _parent: ModelEntity¶
Reference to a parent entity in the model.
- class pyGHDL.dom.Type.RecordType(node, identifier, elements=None)[source]¶
Inheritance
- Parameters:
node (Iir) –
identifier (str) –
elements (List[RecordTypeElement]) –
- __init__(node, identifier, elements=None)[source]¶
Initializes underlying
BaseType.- Parameters:
identifier (
str) – Name of the type.node (Iir) –
elements (Optional[List[RecordTypeElement]]) –
- property Identifier: str¶
Returns a model entity’s identifier (name).
- Return type:
- Returns:
Name of a model entity.
- property Parent: ModelEntity¶
Returns a reference to the parent entity.
- Return type:
- Returns:
Parent entity.
- _parent: ModelEntity¶
Reference to a parent entity in the model.
- class pyGHDL.dom.Type.ProtectedType(node, identifier, methods=None)[source]¶
Inheritance
- property Identifier: str¶
Returns a model entity’s identifier (name).
- Return type:
- Returns:
Name of a model entity.
- property Parent: ModelEntity¶
Returns a reference to the parent entity.
- Return type:
- Returns:
Parent entity.
- _parent: ModelEntity¶
Reference to a parent entity in the model.
- class pyGHDL.dom.Type.ProtectedTypeBody(node, identifier, declaredItems=None)[source]¶
Inheritance
- property Identifier: str¶
Returns a model entity’s identifier (name).
- Return type:
- Returns:
Name of a model entity.
- property Parent: ModelEntity¶
Returns a reference to the parent entity.
- Return type:
- Returns:
Parent entity.
- _parent: ModelEntity¶
Reference to a parent entity in the model.
- class pyGHDL.dom.Type.AccessType(node, identifier, designatedSubtype)[source]¶
Inheritance
- property Identifier: str¶
Returns a model entity’s identifier (name).
- Return type:
- Returns:
Name of a model entity.
- property Parent: ModelEntity¶
Returns a reference to the parent entity.
- Return type:
- Returns:
Parent entity.
- _parent: ModelEntity¶
Reference to a parent entity in the model.
- class pyGHDL.dom.Type.FileType(node, identifier, designatedSubtype)[source]¶
Inheritance
- property Identifier: str¶
Returns a model entity’s identifier (name).
- Return type:
- Returns:
Name of a model entity.
- property Parent: ModelEntity¶
Returns a reference to the parent entity.
- Return type:
- Returns:
Parent entity.
- _parent: ModelEntity¶
Reference to a parent entity in the model.
- class pyGHDL.dom.Type.Subtype(node, subtypeName)[source]¶
Inheritance
- Parameters:
node (Iir) –
subtypeName (str) –
- __init__(node, subtypeName)[source]¶
Initializes underlying
BaseType.- Parameters:
identifier – Name of the type.
node (Iir) –
subtypeName (str) –
- property Identifier: str¶
Returns a model entity’s identifier (name).
- Return type:
- Returns:
Name of a model entity.
- property Parent: ModelEntity¶
Returns a reference to the parent entity.
- Return type:
- Returns:
Parent entity.
- _parent: ModelEntity¶
Reference to a parent entity in the model.