v_sim.NodeArrayIter

Fields

Name

Type

Access

Description

arr

[object]

r/w

an iternal list of nodes to iterate on.

array

v_sim.NodeArray

r/w

a pointer the iterator is associated to ;

element

v_sim.Element

r/w

a pointer on a current element.

iElement

int

r/w

the index corresponding to element (or -1 if no set);

idMax

int

r/w

current higher id used to identified nodes.

init

bool

r/w

an internal flag.

itArr

int

r/w

an internal iterator on array.

itLst

[object]

r/w

an internal list iterator.

nAllStoredNodes

int

r/w

the total number of stored nodes for the associated v_sim.Data ;

nElements

int

r/w

the number of v_sim.Element for the associated v_sim.Data ;

nStoredNodes

int

r/w

the number of stored nodes for the current element ;

node

v_sim.Node

r/w

a pointer on a current node ;

type

v_sim.NodeArrayIterType

r/w

the kind of iterator, see v_sim.NodeArrayIterType.

Methods

next ()

next2 (iter2)

Details

class v_sim.NodeArrayIter

This structure is an iterator over the nodes of a v_sim.Data object. Create it with v_sim.NodeArray.iter_new(). Then the numbers are allocated and correspond to the value of the v_sim.Data object. Use v_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, or None if there is no more node to run over.

next()
Returns:

True if any item is found, False otherwise.

Return type:

bool

Run the iterator to go to next item.

New in version 3.6.

next2(iter2)
Parameters:

iter2 (v_sim.NodeArrayIter) – a v_sim.NodeArrayIter object.

Returns:

True if any item is found, False otherwise.

Return type:

bool

Iterator to run on a pair of different nodes.

New in version 3.6.