Back to index

lightning-sunbird  0.9+nobinonly
Public Member Functions | Public Attributes
CList Struct Reference

#include <nsCList.h>

Collaboration diagram for CList:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 CList ()
 ~CList ()
void Append (CList &element)
void Add (CList &element)
void AppendToList (CList &list)
void AddToList (CList &list)
void Remove (void)
bool IsEmpty (void)

Public Attributes

CListnext
CListprev

Detailed Description

Definition at line 56 of file nsCList.h.


Constructor & Destructor Documentation

CList::CList ( ) [inline]

Definition at line 60 of file nsCList.h.

            {
        next = prev = this;
    }
CList::~CList ( ) [inline]

Definition at line 64 of file nsCList.h.

             {
        Remove();
    }

Here is the call graph for this function:


Member Function Documentation

void CList::Add ( CList element) [inline]

Definition at line 81 of file nsCList.h.

                             {
        element.next = next;
        element.prev = this;
        next->prev = &element;
        next = &element;
    }

Here is the caller graph for this function:

void CList::AddToList ( CList list) [inline]

Definition at line 98 of file nsCList.h.

                                {
        list.Add(*this);
    }

Here is the call graph for this function:

void CList::Append ( CList element) [inline]

Definition at line 71 of file nsCList.h.

                                {
        element.next = this;
        element.prev = prev;
        prev->next = &element;
        prev = &element;
    }

Here is the caller graph for this function:

void CList::AppendToList ( CList list) [inline]

Definition at line 91 of file nsCList.h.

                                   {
        list.Append(*this);
    }

Here is the call graph for this function:

bool CList::IsEmpty ( void  ) [inline]

Definition at line 115 of file nsCList.h.

                       {
        return (next == this);
    }
void CList::Remove ( void  ) [inline]

Definition at line 105 of file nsCList.h.

                      {
        prev->next = next;
        next->prev = prev;
 
        next = prev = this;
    }

Here is the caller graph for this function:


Member Data Documentation

Definition at line 57 of file nsCList.h.

Definition at line 58 of file nsCList.h.


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