Back to index

lightning-sunbird  0.9+nobinonly
Public Types | Public Member Functions | Private Attributes | Friends
nsLineList_iterator Class Reference

A linked list type where the items in the list must inherit from a link type to fuse allocations. More...

#include <nsLineBox.h>

Collaboration diagram for nsLineList_iterator:
Collaboration graph
[legend]

List of all members.

Public Types

typedef nsLineList_iterator iterator_self_type
typedef nsLineList_reverse_iterator iterator_reverse_type
typedef nsLineBoxreference
typedef const nsLineBoxconst_reference
typedef nsLineBoxpointer
typedef const nsLineBoxconst_pointer
typedef PRUint32 size_type
typedef PRInt32 difference_type
typedef nsLineLink link_type

Public Member Functions

iterator_self_typeoperator= (const iterator_self_type &aOther)
iterator_self_typeoperator= (const iterator_reverse_type &aOther)
iterator_self_typeoperator++ ()
iterator_self_type operator++ (int)
iterator_self_typeoperator-- ()
iterator_self_type operator-- (int)
reference operator* ()
pointer operator-> ()
pointer get ()
 operator pointer ()
const_reference operator* () const
const_pointer operator-> () const
 operator const_pointer () const
iterator_self_type next ()
const iterator_self_type next () const
iterator_self_type prev ()
const iterator_self_type prev () const
PRBool operator== (const iterator_self_type aOther) const
PRBool operator!= (const iterator_self_type aOther) const
PRBool operator== (const iterator_self_type aOther)
PRBool operator!= (const iterator_self_type aOther)

Private Attributes

link_typemCurrent

Friends

class nsLineList
class nsLineList_reverse_iterator
class nsLineList_const_iterator
class nsLineList_const_reverse_iterator

Detailed Description

A linked list type where the items in the list must inherit from a link type to fuse allocations.

API heavily based on the |list| class in the C++ standard.

Definition at line 525 of file nsLineBox.h.


Member Typedef Documentation

Definition at line 539 of file nsLineBox.h.

Definition at line 536 of file nsLineBox.h.

Definition at line 542 of file nsLineBox.h.

Definition at line 533 of file nsLineBox.h.

Definition at line 532 of file nsLineBox.h.

Definition at line 544 of file nsLineBox.h.

Definition at line 538 of file nsLineBox.h.

Definition at line 535 of file nsLineBox.h.

Definition at line 541 of file nsLineBox.h.


Member Function Documentation

Definition at line 596 of file nsLineBox.h.

    {
#ifdef NS_LINELIST_DEBUG_PASS_END
      NS_ASSERTION(mCurrent != mListLink, "running past end");
#endif
      return NS_STATIC_CAST(pointer, mCurrent);
    }

Here is the caller graph for this function:

Definition at line 638 of file nsLineBox.h.

    {
      iterator_self_type copy(*this);
      return ++copy;
    }

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 644 of file nsLineBox.h.

    {
      iterator_self_type copy(*this);
      return ++copy;
    }

Here is the call graph for this function:

nsLineList_iterator::operator const_pointer ( ) const [inline]

Definition at line 629 of file nsLineBox.h.

    {
#ifdef NS_LINELIST_DEBUG_PASS_END
      NS_ASSERTION(mCurrent != mListLink, "running past end");
#endif
      return NS_STATIC_CAST(const_pointer, mCurrent);
    }
nsLineList_iterator::operator pointer ( ) [inline]

Definition at line 604 of file nsLineBox.h.

    {
#ifdef NS_LINELIST_DEBUG_PASS_END
      NS_ASSERTION(mCurrent != mListLink, "running past end");
#endif
      return NS_STATIC_CAST(pointer, mCurrent);
    }
PRBool nsLineList_iterator::operator!= ( const iterator_self_type  aOther) const [inline]

Definition at line 667 of file nsLineBox.h.

        { return mCurrent != aOther.mCurrent; }
PRBool nsLineList_iterator::operator!= ( const iterator_self_type  aOther) [inline]

Definition at line 671 of file nsLineBox.h.

        { return mCurrent != aOther.mCurrent; }
reference nsLineList_iterator::operator* ( ) [inline]

Definition at line 580 of file nsLineBox.h.

    {
#ifdef NS_LINELIST_DEBUG_PASS_END
      NS_ASSERTION(mCurrent != mListLink, "running past end");
#endif
      return *NS_STATIC_CAST(pointer, mCurrent);
    }
const_reference nsLineList_iterator::operator* ( ) const [inline]

Definition at line 612 of file nsLineBox.h.

    {
#ifdef NS_LINELIST_DEBUG_PASS_END
      NS_ASSERTION(mCurrent != mListLink, "running past end");
#endif
      return *NS_STATIC_CAST(const_pointer, mCurrent);
    }
iterator_self_type& nsLineList_iterator::operator++ ( ) [inline]

Definition at line 554 of file nsLineBox.h.

    {
      mCurrent = mCurrent->_mNext;
      return *this;
    }
iterator_self_type nsLineList_iterator::operator++ ( int  ) [inline]

Definition at line 560 of file nsLineBox.h.

    {
      iterator_self_type rv(*this);
      mCurrent = mCurrent->_mNext;
      return rv;
    }
iterator_self_type& nsLineList_iterator::operator-- ( ) [inline]

Definition at line 567 of file nsLineBox.h.

    {
      mCurrent = mCurrent->_mPrev;
      return *this;
    }
iterator_self_type nsLineList_iterator::operator-- ( int  ) [inline]

Definition at line 573 of file nsLineBox.h.

    {
      iterator_self_type rv(*this);
      mCurrent = mCurrent->_mPrev;
      return rv;
    }
pointer nsLineList_iterator::operator-> ( ) [inline]

Definition at line 588 of file nsLineBox.h.

    {
#ifdef NS_LINELIST_DEBUG_PASS_END
      NS_ASSERTION(mCurrent != mListLink, "running past end");
#endif
      return NS_STATIC_CAST(pointer, mCurrent);
    }
const_pointer nsLineList_iterator::operator-> ( ) const [inline]

Definition at line 620 of file nsLineBox.h.

    {
#ifdef NS_LINELIST_DEBUG_PASS_END
      NS_ASSERTION(mCurrent != mListLink, "running past end");
#endif
      return NS_STATIC_CAST(const_pointer, mCurrent);
    }
nsLineList_iterator & nsLineList_iterator::operator= ( const iterator_self_type aOther) [inline]

Definition at line 1388 of file nsLineBox.h.

nsLineList_iterator & nsLineList_iterator::operator= ( const iterator_reverse_type aOther) [inline]

Definition at line 1395 of file nsLineBox.h.

PRBool nsLineList_iterator::operator== ( const iterator_self_type  aOther) const [inline]

Definition at line 665 of file nsLineBox.h.

        { return mCurrent == aOther.mCurrent; }
PRBool nsLineList_iterator::operator== ( const iterator_self_type  aOther) [inline]

Definition at line 669 of file nsLineBox.h.

        { return mCurrent == aOther.mCurrent; }

Definition at line 650 of file nsLineBox.h.

    {
      iterator_self_type copy(*this);
      return --copy;
    }

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 656 of file nsLineBox.h.

    {
      iterator_self_type copy(*this);
      return --copy;
    }

Here is the call graph for this function:


Friends And Related Function Documentation

friend class nsLineList [friend]

Definition at line 527 of file nsLineBox.h.

friend class nsLineList_const_iterator [friend]

Definition at line 529 of file nsLineBox.h.

friend class nsLineList_const_reverse_iterator [friend]

Definition at line 530 of file nsLineBox.h.

friend class nsLineList_reverse_iterator [friend]

Definition at line 528 of file nsLineBox.h.


Member Data Documentation

Definition at line 675 of file nsLineBox.h.


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