Back to index

lightning-sunbird  0.9+nobinonly
Public Member Functions | Protected Attributes | Private Member Functions
nsSupportsArrayEnumerator Class Reference

#include <nsSupportsArrayEnumerator.h>

Inheritance diagram for nsSupportsArrayEnumerator:
Inheritance graph
[legend]
Collaboration diagram for nsSupportsArrayEnumerator:
Collaboration graph
[legend]

List of all members.

Public Member Functions

NS_DECL_ISUPPORTS nsSupportsArrayEnumerator (nsISupportsArray *array)
void last ()
 Last will reset the list to the end.
void prev ()
 Prev will decrement the list.
void first ()
 First will reset the list.
void next ()
 Next will advance the list.
nsISupports currentItem ()
 CurrentItem will return the CurrentItem item it will fail if the list is empty.
void isDone ()
 return if the collection is at the end.

Protected Attributes

nsISupportsArraymArray
PRInt32 mCursor

Private Member Functions

 ~nsSupportsArrayEnumerator ()

Detailed Description

Definition at line 45 of file nsSupportsArrayEnumerator.h.


Constructor & Destructor Documentation

Definition at line 41 of file nsSupportsArrayEnumerator.cpp.

  : mArray(array), mCursor(0)
{
  NS_ASSERTION(array, "null array");
  NS_ADDREF(mArray);
}

Here is the call graph for this function:

Definition at line 48 of file nsSupportsArrayEnumerator.cpp.


Member Function Documentation

nsISupports nsIEnumerator::currentItem ( ) [inherited]

CurrentItem will return the CurrentItem item it will fail if the list is empty.

void nsIEnumerator::first ( ) [inherited]

First will reset the list.

will return NS_FAILED if no items

void nsIEnumerator::isDone ( ) [inherited]

return if the collection is at the end.

that is the beginning following a call to Prev and it is the end of the list following a call to next

Last will reset the list to the end.

will return NS_FAILED if no items

void nsIEnumerator::next ( ) [inherited]

Next will advance the list.

will return failed if already at end

Prev will decrement the list.

will return failed if already at beginning


Member Data Documentation

Definition at line 61 of file nsSupportsArrayEnumerator.h.

Definition at line 62 of file nsSupportsArrayEnumerator.h.


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