Back to index

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

#include <ipcStringList.h>

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

List of all members.

Public Types

typedef ipcList< ipcStringNodeSuper

Public Member Functions

void Prepend (const char *str)
void Append (const char *str)
const ipcStringNodeFind (const char *str) const
void FindAndDelete (const char *str)
void Prepend (ipcStringNode *obj)
void Append (ipcStringNode *obj)
void InsertAfter (ipcStringNode *a, ipcStringNode *b)
void RemoveFirst ()
void RemoveAfter (ipcStringNode *obj)
void DeleteFirst ()
void DeleteAfter (ipcStringNode *obj)
void DeleteAll ()
const ipcStringNodeFirst () const
ipcStringNodeFirst ()
const ipcStringNodeLast () const
ipcStringNodeLast ()
PRBool IsEmpty () const
void MoveTo (ipcList< ipcStringNode > &other)

Protected Member Functions

void AdvanceHead ()

Protected Attributes

ipcStringNodemHead
ipcStringNodemTail

Static Private Member Functions

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

Private Attributes

static const char * str

Detailed Description

Definition at line 74 of file ipcStringList.h.


Member Typedef Documentation

Definition at line 77 of file ipcStringList.h.


Member Function Documentation

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

Definition at line 178 of file ipcList.h.

    {
        mHead = mHead->mNext;
        if (!mHead)
            mTail = NULL;
    }
void ipcList< ipcStringNode >::Append ( ipcStringNode 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 ipcStringList::Append ( const char *  str) [inline]

Definition at line 84 of file ipcStringList.h.

Here is the call graph for this function:

Here is the caller graph for this function:

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

Definition at line 141 of file ipcList.h.

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

Here is the caller graph for this function:

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

Definition at line 153 of file ipcList.h.

    {
        while (mHead)
            DeleteFirst();
    }
void ipcList< ipcStringNode >::DeleteFirst ( ) [inline, inherited]

Definition at line 129 of file ipcList.h.

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

Here is the caller graph for this function:

const ipcStringNode* ipcStringList::Find ( const char *  str) const [inline]

Definition at line 89 of file ipcStringList.h.

    {
        return FindNode(mHead, str);
    }

Here is the caller graph for this function:

void ipcStringList::FindAndDelete ( const char *  str) [inline]

Definition at line 94 of file ipcStringList.h.

    {
        ipcStringNode *node = FindNodeBefore(mHead, str);
        if (node)
            DeleteAfter(node);
        else
            DeleteFirst();
    }

Here is the call graph for this function:

Here is the caller graph for this function:

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

Definition at line 159 of file ipcList.h.

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

Definition at line 160 of file ipcList.h.

{ return mHead; }
void ipcList< ipcStringNode >::InsertAfter ( ipcStringNode a,
ipcStringNode 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< ipcStringNode >::IsEmpty ( void  ) const [inline, inherited]

Definition at line 164 of file ipcList.h.

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

Definition at line 161 of file ipcList.h.

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

Definition at line 162 of file ipcList.h.

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

Definition at line 169 of file ipcList.h.

    {
        other.mHead = mHead;
        other.mTail = mTail;
        mHead = NULL;
        mTail = NULL;
    }
static ipcStringList::NS_HIDDEN_ ( ipcStringNode ) [static, private]
static ipcStringList::NS_HIDDEN_ ( ipcStringNode ) [static, private]
void ipcList< ipcStringNode >::Prepend ( ipcStringNode 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 ipcStringList::Prepend ( const char *  str) [inline]

Definition at line 79 of file ipcStringList.h.

Here is the call graph for this function:

void ipcList< ipcStringNode >::RemoveAfter ( ipcStringNode 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< ipcStringNode >::RemoveFirst ( ) [inline, inherited]

Definition at line 107 of file ipcList.h.

    {
        if (mHead)
            AdvanceHead();
    }

Member Data Documentation

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

Definition at line 185 of file ipcList.h.

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

Definition at line 186 of file ipcList.h.

static const char * ipcStringList::str [private]

Definition at line 104 of file ipcStringList.h.


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