Package ClusterShell :: Module Topology :: Class TopologyTree :: Class TreeIterator
[hide private]
[frames] | no frames]

Class TreeIterator

source code


efficient tool for tree-traversal

Instance Methods [hide private]
 
__init__(self, tree)
we do simply manage a stack with the remaining nodes
source code
 
next(self)
return the next node in the stack or raise a StopIteration exception if the stack is empty
source code

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, tree)
(Constructor)

source code 

we do simply manage a stack with the remaining nodes

Overrides: object.__init__