Back to index

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

#include <txStack.h>

Collaboration diagram for txStackIterator:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 txStackIterator (txStack *aStack)
 Creates an iterator for the given stack.
PRBool hasNext ()
 Returns true if there is more objects on the stack.
voidnext ()
 Returns the next object pointer from the stack.

Private Attributes

txStackmStack
PRInt32 mPosition

Detailed Description

Definition at line 110 of file txStack.h.


Constructor & Destructor Documentation

txStackIterator::txStackIterator ( txStack aStack) [inline]

Creates an iterator for the given stack.

Parameters:
aStackthe stack to create an iterator for.

Definition at line 119 of file txStack.h.

                                     : mStack(aStack),
                                       mPosition(0)
    {
    }

Member Function Documentation

Returns true if there is more objects on the stack.

Returns:
.

Definition at line 129 of file txStack.h.

    {
        return (mPosition < mStack->Count());
    }

Here is the caller graph for this function:

void* txStackIterator::next ( ) [inline]

Returns the next object pointer from the stack.

Returns:
.

Definition at line 139 of file txStack.h.

    {
        if (mPosition == mStack->Count()) {
            return nsnull;
        }
        return mStack->ElementAt(mPosition++);
    }

Here is the caller graph for this function:


Member Data Documentation

Definition at line 149 of file txStack.h.

Definition at line 148 of file txStack.h.


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