Back to index

lightning-sunbird  0.9+nobinonly
Public Member Functions | Private Attributes | Static Private Attributes
xpcom.server.enumerator.SimpleEnumerator Class Reference

List of all members.

Public Member Functions

def __init__
def hasMoreElements
def getNext

Private Attributes

 _data
 _index

Static Private Attributes

list _com_interfaces_ = [components.interfaces.nsISimpleEnumerator]

Detailed Description

Definition at line 46 of file enumerator.py.


Constructor & Destructor Documentation

Definition at line 49 of file enumerator.py.

00049 
00050     def __init__(self, data):
00051         self._data = data
00052         self._index = 0


Member Function Documentation

Definition at line 56 of file enumerator.py.

00056 
00057     def getNext(self):
00058         self._index = self._index + 1
00059         return self._data[self._index-1]

Definition at line 53 of file enumerator.py.

00053 
00054     def hasMoreElements(self):
00055         return self._index < len(self._data)
    

Member Data Documentation

Definition at line 47 of file enumerator.py.

Definition at line 50 of file enumerator.py.

Definition at line 51 of file enumerator.py.


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