Back to index

lightning-sunbird  0.9+nobinonly
Public Member Functions | Static Public Member Functions | Public Attributes
morkLink Class Reference

#include <morkDeque.h>

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

List of all members.

Public Member Functions

 morkLink (int inZero)
 morkLink ()
morkLinkNext () const
morkLinkPrev () const
void SelfRefer ()
void Clear ()
void AddBefore (morkLink *old)
void AddAfter (morkLink *old)
void Remove ()
void ZapOldLink (morkEnv *ev, nsIMdbHeap *ioHeap)
voidoperator new (size_t inSize, nsIMdbHeap &ioHeap, morkEnv *ev) CPP_THROW_NEW

Static Public Member Functions

static voidMakeNewLink (size_t inSize, nsIMdbHeap &ioHeap, morkEnv *ev)

Public Attributes

morkLinkmLink_Next
morkLinkmLink_Prev

Detailed Description

Definition at line 115 of file morkDeque.h.


Constructor & Destructor Documentation

morkLink::morkLink ( int  inZero) [inline]

Definition at line 121 of file morkDeque.h.

: mLink_Next( 0 ), mLink_Prev( 0 ) { }

Definition at line 169 of file morkDeque.cpp.

                   : mLink_Next( 0 ), mLink_Prev( 0 )
{
}

Member Function Documentation

void morkLink::AddAfter ( morkLink old) [inline]

Definition at line 138 of file morkDeque.h.

  {
    ((old)->mLink_Next->mLink_Prev = (this))->mLink_Next = (old)->mLink_Next;
    ((this)->mLink_Prev = (old))->mLink_Next = this;
  }
void morkLink::AddBefore ( morkLink old) [inline]

Definition at line 132 of file morkDeque.h.

  {
    ((old)->mLink_Prev->mLink_Next = (this))->mLink_Prev = (old)->mLink_Prev;
    ((this)->mLink_Next = (old))->mLink_Prev = this;
  }
void morkLink::Clear ( ) [inline]

Definition at line 130 of file morkDeque.h.

void * morkLink::MakeNewLink ( size_t  inSize,
nsIMdbHeap ioHeap,
morkEnv ev 
) [static]

Definition at line 174 of file morkDeque.cpp.

{
  void* alink = 0;
  if ( &ioHeap )
  {
    ioHeap.Alloc(ev->AsMdbEnv(), inSize, (void**) &alink);
    if ( !alink )
      ev->OutOfMemoryError();
  }
  else
    ev->NilPointerError();
  
  return alink;
}

Here is the call graph for this function:

Here is the caller graph for this function:

morkLink* morkLink::Next ( ) const [inline]

Definition at line 126 of file morkDeque.h.

{ return mLink_Next; }
void* morkLink::operator new ( size_t  inSize,
nsIMdbHeap ioHeap,
morkEnv ev 
) [inline]

Reimplemented in morkTable.

Definition at line 154 of file morkDeque.h.

  { return morkLink::MakeNewLink(inSize, ioHeap, ev); }

Here is the call graph for this function:

morkLink* morkLink::Prev ( ) const [inline]

Definition at line 127 of file morkDeque.h.

{ return mLink_Prev; }
void morkLink::Remove ( ) [inline]

Definition at line 144 of file morkDeque.h.

void morkLink::SelfRefer ( ) [inline]

Definition at line 129 of file morkDeque.h.

{ mLink_Next = mLink_Prev = this; }

Here is the caller graph for this function:

void morkLink::ZapOldLink ( morkEnv ev,
nsIMdbHeap ioHeap 
)

Definition at line 190 of file morkDeque.cpp.

{
  if ( ioHeap )
  {
    if ( this )
      ioHeap->Free(ev->AsMdbEnv(), this);
  }
  else
    ev->NilPointerError();
}

Here is the call graph for this function:


Member Data Documentation

Definition at line 117 of file morkDeque.h.

Definition at line 118 of file morkDeque.h.


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