Back to index

salome-paravis  6.5.0
Public Member Functions | Public Attributes
paravisSM.GenericIterator Class Reference

List of all members.

Public Member Functions

def __init__
def __iter__
def next

Public Attributes

 Object
 index

Detailed Description

Iterator for container type objects

Definition at line 592 of file paravisSM.py.


Constructor & Destructor Documentation

def paravisSM.GenericIterator.__init__ (   self,
  obj 
)

Definition at line 595 of file paravisSM.py.

00595 
00596     def __init__(self, obj):
00597         self.Object = obj
00598         self.index = 0


Member Function Documentation

Definition at line 599 of file paravisSM.py.

00599 
00600     def __iter__(self):
00601         return self

Here is the caller graph for this function:

Definition at line 602 of file paravisSM.py.

00602 
00603     def next(self):
00604         if self.index >= len(self.Object):
00605             raise StopIteration
00606 
00607         idx = self.index
00608         self.index += 1
00609         return self.Object[idx]


Member Data Documentation

Definition at line 597 of file paravisSM.py.

Definition at line 596 of file paravisSM.py.


The documentation for this class was generated from the following file: