Back to index

plone3  3.1.7
Public Member Functions | Private Attributes
CMFEditions.ZVCStorageTool.GetItemIterator Class Reference

List of all members.

Public Member Functions

def __init__
def __iter__
def next

Private Attributes

 _getItem
 _stopExceptions
 _pos

Detailed Description

Iterator object using a getitem implementation to iterate over.

Definition at line 1001 of file ZVCStorageTool.py.


Constructor & Destructor Documentation

def CMFEditions.ZVCStorageTool.GetItemIterator.__init__ (   self,
  getItem,
  stopExceptions 
)

Definition at line 1004 of file ZVCStorageTool.py.

01004 
01005     def __init__(self, getItem, stopExceptions):
01006         self._getItem = getItem
01007         self._stopExceptions = stopExceptions
01008         self._pos = -1


Member Function Documentation

Definition at line 1009 of file ZVCStorageTool.py.

01009 
01010     def __iter__(self):
01011         return self
        

Here is the caller graph for this function:

Definition at line 1012 of file ZVCStorageTool.py.

01012 
01013     def next(self):
01014         self._pos += 1
01015         try:
01016             return self._getItem(self._pos)
01017         except self._stopExceptions:
01018             raise StopIteration()

Member Data Documentation

Definition at line 1005 of file ZVCStorageTool.py.

Definition at line 1007 of file ZVCStorageTool.py.

Definition at line 1006 of file ZVCStorageTool.py.


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