Back to index

lightning-sunbird  0.9+nobinonly
Public Member Functions
nsISimpleEnumerator Interface Reference

Used to enumerate over elements defined by its implementor. More...

import "nsISimpleEnumerator.idl";

Inherits nsISupports.

Inherited by BaseStringEnumerator, CompositeEnumeratorImpl, ContainerEnumeratorImpl, DirectoryEnumerator, EmptyEnumeratorImpl, InMemoryArcsEnumeratorImpl, InMemoryAssertionEnumeratorImpl, mozMySpellDirProvider::AppendingEnumerator, mozSqlResultEnumerator, mozStorageStatementRowEnumerator, NS_COM, NS_COM, NS_COM, NS_COM, NS_MSG_BASE, nsAppDirectoryEnumerator, nsAppShellWindowEnumerator, nsCOMArrayEnumerator, nsDirEnumerator, nsDirEnumerator, nsDirEnumerator, nsDirEnumerator, nsDocShellEnumerator, nsDriveEnumerator, nsDriveEnumerator, nsFontListEnumerator, nsFormControlEnumerator, nsGroupsEnumerator, nsJAREnumerator, nsMailDirProvider::AppendingEnumerator, nsMdbTableEnumerator, nsMdbTableEnumerator, nsMsgDBEnumerator, nsMsgDBThreadEnumerator, nsMsgGroupThreadEnumerator, nsMsgOfflineOpEnumerator, nsMsgThreadEnumerator, nsNamedGroupEnumerator, nsPasswordManagerEnumerator, nsPasswordManagerRejectEnumerator, nsPermissionEnumerator, nsPrinterListEnumerator, nsPropertyEnumeratorByURL, nsSHEnumerator, nsSimpleArrayEnumerator, nsSOAPPropertyBagEnumerator, nsStringEnumerator, nsToolkitProfileService::ProfileEnumerator, nsWatcherWindowEnumerator, ObserverListEnumerator, PLDHashTableEnumeratorImpl, WSPComplexTypeEnumerator, xpcPropertyBagEnumerator, and xptiAdditionalManagersEnumerator.

Collaboration diagram for nsISimpleEnumerator:
Collaboration graph
[legend]

List of all members.

Public Member Functions

boolean hasMoreElements ()
 Called to determine whether or not the enumerator has any elements that can be returned via getNext().
nsISupports getNext ()
 Called to retrieve the next element in the enumerator.

Detailed Description

Used to enumerate over elements defined by its implementor.

Although hasMoreElements() can be called independently of getNext(), getNext() must be pre-ceeded by a call to hasMoreElements(). There is no way to "reset" an enumerator, once you obtain one.

FROZEN

Version:
1.0

Definition at line 51 of file nsISimpleEnumerator.idl.


Member Function Documentation

Called to retrieve the next element in the enumerator.

The "next" element is the first element upon the first call. Must be pre-ceeded by a call to hasMoreElements() which returns PR_TRUE. This method is generally called within a loop to iterate over the elements in the enumerator.

See also:
hasMoreElements()
Returns:
NS_OK if the call succeeded in returning a non-null value through the out parameter. NS_ERROR_FAILURE if there are no more elements to enumerate.
the next element in the enumeration.

Here is the caller graph for this function:

Called to determine whether or not the enumerator has any elements that can be returned via getNext().

This method is generally used to determine whether or not to initiate or continue iteration over the enumerator, though it can be called without subsequent getNext() calls. Does not affect internal state of enumerator.

See also:
getNext()
Returns:
PR_TRUE if there are remaining elements in the enumerator. PR_FALSE if there are no more elements in the enumerator.

Here is the caller graph for this function:


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