Back to index

lightning-sunbird  0.9+nobinonly
Public Types | Public Member Functions | Protected Member Functions | Protected Attributes | Static Private Member Functions | Private Attributes
ipcIDList Class Reference

#include <ipcIDList.h>

Inheritance diagram for ipcIDList:
Inheritance graph
[legend]
Collaboration diagram for ipcIDList:
Collaboration graph
[legend]

List of all members.

Public Types

typedef ipcList< ipcIDNodeSuper

Public Member Functions

void Prepend (const nsID &id)
void Append (const nsID &id)
const ipcIDNodeFind (const nsID &id) const
void FindAndDelete (const nsID &id)
void Prepend (ipcIDNode *obj)
void Append (ipcIDNode *obj)
void InsertAfter (ipcIDNode *a, ipcIDNode *b)
void RemoveFirst ()
void RemoveAfter (ipcIDNode *obj)
void DeleteFirst ()
void DeleteAfter (ipcIDNode *obj)
void DeleteAll ()
const ipcIDNodeFirst () const
ipcIDNodeFirst ()
const ipcIDNodeLast () const
ipcIDNodeLast ()
PRBool IsEmpty () const
void MoveTo (ipcList< ipcIDNode > &other)

Protected Member Functions

void AdvanceHead ()

Protected Attributes

ipcIDNodemHead
ipcIDNodemTail

Static Private Member Functions

static NS_HIDDEN_ (ipcIDNode *) FindNode(ipcIDNode *head
static NS_HIDDEN_ (ipcIDNode *) FindNodeBefore(ipcIDNode *head

Private Attributes

static const nsIDid

Detailed Description

Definition at line 68 of file ipcIDList.h.


Member Typedef Documentation

Definition at line 71 of file ipcIDList.h.


Member Function Documentation

void ipcList< ipcIDNode >::AdvanceHead ( ) [inline, protected, inherited]

Definition at line 178 of file ipcList.h.

    {
        mHead = mHead->mNext;
        if (!mHead)
            mTail = NULL;
    }
void ipcIDList::Append ( const nsID id) [inline]

Definition at line 78 of file ipcIDList.h.

    {
        Super::Append(new ipcIDNode(id));
    }

Here is the call graph for this function:

Here is the caller graph for this function:

void ipcList< ipcIDNode >::Append ( ipcIDNode obj) [inline, inherited]

Definition at line 82 of file ipcList.h.

    {
        obj->mNext = NULL;
        if (mTail) {
            mTail->mNext = obj;
            mTail = obj;
        }
        else
            mTail = mHead = obj;
    }

Here is the caller graph for this function:

void ipcList< ipcIDNode >::DeleteAfter ( ipcIDNode obj) [inline, inherited]

Definition at line 141 of file ipcList.h.

    {
        T *rej = obj->mNext;
        if (rej) {
            RemoveAfter(obj);
            delete rej;
        }
    }

Here is the call graph for this function:

Here is the caller graph for this function:

void ipcList< ipcIDNode >::DeleteAll ( ) [inline, inherited]

Definition at line 153 of file ipcList.h.

    {
        while (mHead)
            DeleteFirst();
    }

Here is the call graph for this function:

void ipcList< ipcIDNode >::DeleteFirst ( ) [inline, inherited]

Definition at line 129 of file ipcList.h.

    {
        T *first = mHead;
        if (first) {
            AdvanceHead();
            delete first;
        }
    }

Here is the call graph for this function:

Here is the caller graph for this function:

const ipcIDNode* ipcIDList::Find ( const nsID id) const [inline]

Definition at line 83 of file ipcIDList.h.

    {
        return FindNode(mHead, id);
    }

Here is the caller graph for this function:

Definition at line 88 of file ipcIDList.h.

    {
        ipcIDNode *node = FindNodeBefore(mHead, id);
        if (node)
            DeleteAfter(node);
        else
            DeleteFirst();
    }

Here is the call graph for this function:

Here is the caller graph for this function:

const ipcIDNode * ipcList< ipcIDNode >::First ( void  ) const [inline, inherited]

Definition at line 159 of file ipcList.h.

{ return mHead; }
ipcIDNode * ipcList< ipcIDNode >::First ( void  ) [inline, inherited]

Definition at line 160 of file ipcList.h.

{ return mHead; }
void ipcList< ipcIDNode >::InsertAfter ( ipcIDNode a,
ipcIDNode b 
) [inline, inherited]

Definition at line 96 of file ipcList.h.

    {
        b->mNext = a->mNext;
        a->mNext = b;
        if (mTail == a)
            mTail = b;
    }
PRBool ipcList< ipcIDNode >::IsEmpty ( void  ) const [inline, inherited]

Definition at line 164 of file ipcList.h.

{ return mHead == NULL; }
const ipcIDNode * ipcList< ipcIDNode >::Last ( void  ) const [inline, inherited]

Definition at line 161 of file ipcList.h.

{ return mTail; }
ipcIDNode * ipcList< ipcIDNode >::Last ( void  ) [inline, inherited]

Definition at line 162 of file ipcList.h.

{ return mTail; }
void ipcList< ipcIDNode >::MoveTo ( ipcList< ipcIDNode > &  other) [inline, inherited]

Definition at line 169 of file ipcList.h.

    {
        other.mHead = mHead;
        other.mTail = mTail;
        mHead = NULL;
        mTail = NULL;
    }
static ipcIDList::NS_HIDDEN_ ( ipcIDNode ) [static, private]
static ipcIDList::NS_HIDDEN_ ( ipcIDNode ) [static, private]
void ipcList< ipcIDNode >::Prepend ( ipcIDNode obj) [inline, inherited]

Definition at line 71 of file ipcList.h.

    {
        obj->mNext = mHead;
        mHead = obj;
        if (!mTail)
            mTail = mHead;
    }

Here is the caller graph for this function:

void ipcIDList::Prepend ( const nsID id) [inline]

Definition at line 73 of file ipcIDList.h.

    {
        Super::Prepend(new ipcIDNode(id));
    }

Here is the call graph for this function:

void ipcList< ipcIDNode >::RemoveAfter ( ipcIDNode obj) [inline, inherited]

Definition at line 116 of file ipcList.h.

    {
        T *rej = obj->mNext;
        if (rej) {
            obj->mNext = rej->mNext;
            if (rej == mTail)
                mTail = obj;
        }
    }
void ipcList< ipcIDNode >::RemoveFirst ( ) [inline, inherited]

Definition at line 107 of file ipcList.h.

    {
        if (mHead)
            AdvanceHead();
    }

Here is the call graph for this function:


Member Data Documentation

static const nsID & ipcIDList::id [private]

Definition at line 98 of file ipcIDList.h.

ipcIDNode * ipcList< ipcIDNode >::mHead [protected, inherited]

Definition at line 185 of file ipcList.h.

ipcIDNode * ipcList< ipcIDNode >::mTail [protected, inherited]

Definition at line 186 of file ipcList.h.


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