v_sim.NodeArrayIter¶
Fields¶
Name  | 
Type  | 
Access  | 
Description  | 
|---|---|---|---|
arr  | 
[  | 
r/w  | 
an iternal list of nodes to iterate on.  | 
array  | 
r/w  | 
a pointer the iterator is associated to ;  | 
|
element  | 
r/w  | 
a pointer on a current element.  | 
|
iElement  | 
r/w  | 
the index corresponding to element (or -1 if no set);  | 
|
idMax  | 
r/w  | 
current higher id used to identified nodes.  | 
|
init  | 
r/w  | 
an internal flag.  | 
|
itArr  | 
r/w  | 
an internal iterator on array.  | 
|
itLst  | 
[  | 
r/w  | 
an internal list iterator.  | 
nAllStoredNodes  | 
r/w  | 
the total number of stored nodes for the associated   | 
|
nElements  | 
r/w  | 
the number of   | 
|
nStoredNodes  | 
r/w  | 
the number of stored nodes for the current element ;  | 
|
node  | 
r/w  | 
a pointer on a current node ;  | 
|
type  | 
r/w  | 
the kind of iterator, see   | 
Methods¶
  | 
|
  | 
Details¶
- class v_sim.NodeArrayIter¶
 This structure is an iterator over the nodes of a
v_sim.Dataobject. Create it withv_sim.NodeArray.iter_new(). Then the numbers are allocated and correspond to the value of thev_sim.Dataobject. Usev_sim.NodeArray.iterStart() to initialise the iterator for a run over the nodes,v_sim.NodeArray.iterNext() to associate node and element to the next node, orNoneif there is no more node to run over.- next()¶
 - 
Run the iterator to go to next item.
New in version 3.6.
 
- next2(iter2)¶
 - Parameters:
 iter2 (
v_sim.NodeArrayIter) – av_sim.NodeArrayIterobject.- Returns:
 - Return type:
 
Iterator to run on a pair of different nodes.
New in version 3.6.