Back to index

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

#include <morkTable.h>

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

List of all members.

Public Member Functions

 morkTableChange (morkEnv *ev, mork_change inChange, morkRow *ioRow)
 morkTableChange (morkEnv *ev, morkRow *ioRow, mork_pos inPos)
void UnknownChangeError (morkEnv *ev) const
void NegativeMovePosError (morkEnv *ev) const
mork_bool IsAddRowTableChange () const
mork_bool IsCutRowTableChange () const
mork_bool IsMoveRowTableChange () const
mork_pos GetMovePos () const
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

morkRowmTableChange_Row
mork_pos mTableChange_Pos
morkNextmNext_Link

Detailed Description

Definition at line 605 of file morkTable.h.


Constructor & Destructor Documentation

morkTableChange::morkTableChange ( morkEnv ev,
mork_change  inChange,
morkRow ioRow 
)

Definition at line 1554 of file morkTable.cpp.

: morkNext()
, mTableChange_Row( ioRow )
, mTableChange_Pos( morkTableChange_kNone )
{
  if ( ioRow )
  {
    if ( ioRow->IsRow() )
    {
      if ( inChange == morkChange_kAdd )
        mTableChange_Pos = morkTableChange_kAdd;
      else if ( inChange == morkChange_kCut )
        mTableChange_Pos = morkTableChange_kCut;
      else
        this->UnknownChangeError(ev);
    }
    else
      ioRow->NonRowTypeError(ev);
  }
  else
    ev->NilPointerError();
}

Here is the call graph for this function:

morkTableChange::morkTableChange ( morkEnv ev,
morkRow ioRow,
mork_pos  inPos 
)

Definition at line 1579 of file morkTable.cpp.

: morkNext()
, mTableChange_Row( ioRow )
, mTableChange_Pos( inPos )
{
  if ( ioRow )
  {
    if ( ioRow->IsRow() )
    {
      if ( inPos < 0 )
        this->NegativeMovePosError(ev);
    }
    else
      ioRow->NonRowTypeError(ev);
  }
  else
    ev->NilPointerError();
}

Here is the call graph for this function:


Member Function Documentation

Definition at line 636 of file morkTable.h.

{ return mTableChange_Pos; }
morkNext* morkNext::GetNextLink ( ) const [inline, inherited]

Definition at line 51 of file morkDeque.h.

{ return mNext_Link; }

Here is the caller graph for this function:

Definition at line 625 of file morkTable.h.

Here is the caller graph for this function:

Definition at line 628 of file morkTable.h.

Here is the caller graph for this function:

Definition at line 631 of file morkTable.h.

  { return ( mTableChange_Pos >= 0 ); }

Here is the caller graph for this function:

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

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:

Definition at line 1605 of file morkTable.cpp.

{
  ev->NewError("negative mTableChange_Pos for row move");
}

Here is the caller graph for this function:

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

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, inherited]

Definition at line 58 of file morkDeque.h.

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

Here is the call graph for this function:

Definition at line 1599 of file morkTable.cpp.

{
  ev->NewError("mTableChange_Pos neither kAdd nor kCut");
}

Here is the caller graph for this function:

void morkNext::ZapOldNext ( morkEnv ev,
nsIMdbHeap ioHeap 
) [inherited]

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.

Definition at line 610 of file morkTable.h.

Definition at line 608 of file morkTable.h.


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