pyGHDL.libghdl.vhdl.lists#
Functions
Iterate(): Create an iterator for a given list.Is_Valid(): Check if iterator reached the end.Next(): Move iterator to the next element.Get_Element(): Get the current element from iterator.Get_Nbr_Elements(): Return the number of elements in the list.Create_Iir_List(): Create a list.Destroy_Iir_List(): Destroy a list.
Classes
Iterator: Structure base class
Functions
- pyGHDL.libghdl.vhdl.lists.Iterate(List)[source]#
 Create an iterator for a given list.
The idiomatic way to iterate is:
It = Iterate(List) while Is_Valid(It): El = Get_Element(It) # ... Next(It)
- pyGHDL.libghdl.vhdl.lists.Get_Nbr_Elements(List)[source]#
 Return the number of elements in the list.
Hint
This is also 1 + the position of the last element.
- pyGHDL.libghdl.vhdl.lists.Create_Iir_List()[source]#
 Create a list.
- Return type:
 - Returns:
 undocumented; Type:
List_Type
Classes
- class pyGHDL.libghdl.vhdl.lists.Iterator[source]#
 Inheritance
- __hash__()#
 Return hash(self).
- __init__(*args, **kwargs)#
 
- __new__(**kwargs)#
 
- __reduce__()#
 Helper for pickle.
- _b_base_#
 the base object
- _b_needsfree_#
 whether the object owns the memory or not
- _objects#
 internal objects tree (NEVER CHANGE THIS OBJECT!)