Back to index

lightning-sunbird  0.9+nobinonly
Public Member Functions | Protected Member Functions | Protected Attributes | Friends
nsReflowPath::iterator Class Reference

An iterator for enumerating the reflow path's immediate children. More...

#include <nsReflowPath.h>

Collaboration diagram for nsReflowPath::iterator:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 iterator ()
 iterator (const iterator &iter)
iteratoroperator= (const iterator &iter)
nsReflowPathget () const
nsReflowPathget ()
nsIFrameoperator* () const
nsIFrame *& operator* ()
iteratoroperator++ ()
iterator operator++ (int)
PRBool operator== (const iterator &iter) const
PRBool operator!= (const iterator &iter) const

Protected Member Functions

 iterator (nsReflowPath *aNode, PRInt32 aIndex)
void Advance ()

Protected Attributes

nsReflowPathmNode
PRInt32 mIndex

Friends

class nsReflowPath

Detailed Description

An iterator for enumerating the reflow path's immediate children.

Definition at line 79 of file nsReflowPath.h.


Constructor & Destructor Documentation

nsReflowPath::iterator::iterator ( nsReflowPath aNode,
PRInt32  aIndex 
) [inline, protected]

Definition at line 87 of file nsReflowPath.h.

            : mNode(aNode), mIndex(aIndex) {}

Definition at line 94 of file nsReflowPath.h.

            : mNode(nsnull) {}

Definition at line 97 of file nsReflowPath.h.

            : mNode(iter.mNode), mIndex(iter.mIndex) {}

Member Function Documentation

void nsReflowPath::iterator::Advance ( ) [inline, protected]

Definition at line 91 of file nsReflowPath.h.

{ --mIndex; }

Here is the caller graph for this function:

Definition at line 107 of file nsReflowPath.h.

Here is the caller graph for this function:

Definition at line 111 of file nsReflowPath.h.

PRBool nsReflowPath::iterator::operator!= ( const iterator iter) const [inline]

Definition at line 136 of file nsReflowPath.h.

                                               {
            return !iter.operator==(*this); }
nsIFrame* nsReflowPath::iterator::operator* ( ) const [inline]

Definition at line 115 of file nsReflowPath.h.

                          {
            return get()->mFrame; }
nsIFrame*& nsReflowPath::iterator::operator* ( ) [inline]

Definition at line 119 of file nsReflowPath.h.

                    {
            return get()->mFrame; }
iterator& nsReflowPath::iterator::operator++ ( ) [inline]

Definition at line 123 of file nsReflowPath.h.

{ Advance(); return *this; }

Here is the call graph for this function:

iterator nsReflowPath::iterator::operator++ ( int  ) [inline]

Definition at line 126 of file nsReflowPath.h.

                        {
            iterator temp(*this);
            Advance();
            return temp; }

Here is the call graph for this function:

iterator& nsReflowPath::iterator::operator= ( const iterator iter) [inline]

Definition at line 101 of file nsReflowPath.h.

                                        {
            mNode = iter.mNode;
            mIndex = iter.mIndex;
            return *this; }
PRBool nsReflowPath::iterator::operator== ( const iterator iter) const [inline]

Definition at line 132 of file nsReflowPath.h.

                                               {
            return (mNode == iter.mNode) && (mIndex == iter.mIndex); }

Friends And Related Function Documentation

friend class nsReflowPath [friend]

Definition at line 85 of file nsReflowPath.h.


Member Data Documentation

Definition at line 83 of file nsReflowPath.h.

Definition at line 82 of file nsReflowPath.h.


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