Back to index

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

#include <morkDeque.h>

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

List of all members.

Public Member Functions

 morkNext (int inZero)
 morkNext (morkNext *ioLink)
 morkNext ()
morkNextGetNextLink () const
void ZapOldNext (morkEnv *ev, nsIMdbHeap *ioHeap)
voidoperator new (size_t inSize, nsIMdbHeap &ioHeap, morkEnv *ev) CPP_THROW_NEW
void operator delete (void *ioAddress)

Static Public Member Functions

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

Public Attributes

morkNextmNext_Link

Detailed Description

Definition at line 39 of file morkDeque.h.


Constructor & Destructor Documentation

morkNext::morkNext ( int  inZero) [inline]

Definition at line 44 of file morkDeque.h.

: mNext_Link( 0 ) { }
morkNext::morkNext ( morkNext ioLink) [inline]

Definition at line 46 of file morkDeque.h.

: mNext_Link( ioLink ) { }

Definition at line 52 of file morkDeque.cpp.

                   : mNext_Link( 0 )
{
}

Member Function Documentation

morkNext* morkNext::GetNextLink ( ) const [inline]

Definition at line 51 of file morkDeque.h.

{ return mNext_Link; }

Here is the caller graph for this function:

void * morkNext::MakeNewNext ( size_t  inSize,
nsIMdbHeap ioHeap,
morkEnv ev 
) [static]

Definition at line 57 of file morkDeque.cpp.

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

Here is the call graph for this function:

Here is the caller graph for this function:

void morkNext::operator delete ( void ioAddress) [inline]

Definition at line 61 of file morkDeque.h.

  { ((morkNext*) 0)->ZapOldNext((morkEnv*) 0, (nsIMdbHeap*) 0); } // boom
void* morkNext::operator new ( size_t  inSize,
nsIMdbHeap ioHeap,
morkEnv ev 
) [inline]

Definition at line 58 of file morkDeque.h.

  { return morkNext::MakeNewNext(inSize, ioHeap, ev); }

Here is the call graph for this function:

void morkNext::ZapOldNext ( morkEnv ev,
nsIMdbHeap ioHeap 
)

Definition at line 73 of file morkDeque.cpp.

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

Here is the call graph for this function:

Here is the caller graph for this function:


Member Data Documentation

Definition at line 41 of file morkDeque.h.


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