Back to index

lightning-sunbird  0.9+nobinonly
Public Member Functions | Protected Member Functions | Protected Attributes | Private Member Functions
CompositeEnumeratorImpl Class Reference
Inheritance diagram for CompositeEnumeratorImpl:
Inheritance graph
[legend]
Collaboration diagram for CompositeEnumeratorImpl:
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.

Protected Member Functions

 CompositeEnumeratorImpl (CompositeDataSourceImpl *aCompositeDataSource, PRBool aAllowNegativeAssertions, PRBool aCoalesceDuplicateArcs)
virtual ~CompositeEnumeratorImpl ()

Protected Attributes

CompositeDataSourceImplmCompositeDataSource
nsISimpleEnumeratormCurrent
nsIRDFNodemResult
PRInt32 mNext
nsAutoVoidArray mAlreadyReturned
PRPackedBool mAllowNegativeAssertions
PRPackedBool mCoalesceDuplicateArcs

Private Member Functions

NS_DECL_ISUPPORTS virtual
NS_DECL_NSISIMPLEENUMERATOR
nsresult 
GetEnumerator (nsIRDFDataSource *aDataSource, nsISimpleEnumerator **aResult)=0
virtual nsresult HasNegation (nsIRDFDataSource *aDataSource, nsIRDFNode *aNode, PRBool *aResult)=0
virtual void Destroy ()=0

Detailed Description

Definition at line 146 of file nsCompositeDataSource.cpp.


Constructor & Destructor Documentation

CompositeEnumeratorImpl::CompositeEnumeratorImpl ( CompositeDataSourceImpl aCompositeDataSource,
PRBool  aAllowNegativeAssertions,
PRBool  aCoalesceDuplicateArcs 
) [protected]

Definition at line 181 of file nsCompositeDataSource.cpp.

    : mCompositeDataSource(aCompositeDataSource),
      mCurrent(nsnull),
      mResult(nsnull),
         mNext(0),
      mAllowNegativeAssertions(aAllowNegativeAssertions),
      mCoalesceDuplicateArcs(aCoalesceDuplicateArcs)
{
       NS_ADDREF(mCompositeDataSource);
}

Here is the call graph for this function:


Member Function Documentation

virtual void CompositeEnumeratorImpl::Destroy ( ) [private, pure virtual]
NS_DECL_ISUPPORTS virtual NS_DECL_NSISIMPLEENUMERATOR nsresult CompositeEnumeratorImpl::GetEnumerator ( nsIRDFDataSource aDataSource,
nsISimpleEnumerator **  aResult 
) [private, pure virtual]
nsISupports nsISimpleEnumerator::getNext ( ) [inherited]

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:

virtual nsresult CompositeEnumeratorImpl::HasNegation ( nsIRDFDataSource aDataSource,
nsIRDFNode aNode,
PRBool aResult 
) [private, pure virtual]

Member Data Documentation

nsAutoVoidArray CompositeEnumeratorImpl::mAlreadyReturned [protected]

Definition at line 175 of file nsCompositeDataSource.cpp.

Definition at line 170 of file nsCompositeDataSource.cpp.

Definition at line 172 of file nsCompositeDataSource.cpp.

Definition at line 174 of file nsCompositeDataSource.cpp.

Definition at line 173 of file nsCompositeDataSource.cpp.


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