Back to index

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

#include <orkinTable.h>

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

List of all members.

Public Member Functions

virtual ~orkinTable ()
morkEnvCanUseTable (nsIMdbEnv *mev, mork_bool inMutable, mdb_err *outErr) const
mork_bool IsOrkinTable () const
mork_bool IsOrkinTableHandle () const
NS_DECL_ISUPPORTS NS_IMETHOD IsFrozenMdbObject (nsIMdbEnv *ev, mdb_bool *outIsReadonly)
NS_IMETHOD GetMdbFactory (nsIMdbEnv *ev, nsIMdbFactory **acqFactory)
NS_IMETHOD GetWeakRefCount (nsIMdbEnv *ev, mdb_count *outCount)
NS_IMETHOD GetStrongRefCount (nsIMdbEnv *ev, mdb_count *outCount)
NS_IMETHOD AddWeakRef (nsIMdbEnv *ev)
NS_IMETHOD AddStrongRef (nsIMdbEnv *ev)
NS_IMETHOD CutWeakRef (nsIMdbEnv *ev)
NS_IMETHOD CutStrongRef (nsIMdbEnv *ev)
NS_IMETHOD CloseMdbObject (nsIMdbEnv *ev)
NS_IMETHOD IsOpenMdbObject (nsIMdbEnv *ev, mdb_bool *outOpen)
NS_IMETHOD GetSeed (nsIMdbEnv *ev, mdb_seed *outSeed)
NS_IMETHOD GetCount (nsIMdbEnv *ev, mdb_count *outCount)
NS_IMETHOD GetPort (nsIMdbEnv *ev, nsIMdbPort **acqPort)
NS_IMETHOD GetCursor (nsIMdbEnv *ev, mdb_pos inMemberPos, nsIMdbCursor **acqCursor)
NS_IMETHOD GetOid (nsIMdbEnv *ev, mdbOid *outOid)
NS_IMETHOD BecomeContent (nsIMdbEnv *ev, const mdbOid *inOid)
NS_IMETHOD DropActivity (nsIMdbEnv *ev)
NS_IMETHOD SetTablePriority (nsIMdbEnv *ev, mdb_priority inPrio)
NS_IMETHOD GetTablePriority (nsIMdbEnv *ev, mdb_priority *outPrio)
NS_IMETHOD GetTableBeVerbose (nsIMdbEnv *ev, mdb_bool *outBeVerbose)
NS_IMETHOD SetTableBeVerbose (nsIMdbEnv *ev, mdb_bool inBeVerbose)
NS_IMETHOD GetTableIsUnique (nsIMdbEnv *ev, mdb_bool *outIsUnique)
NS_IMETHOD GetTableKind (nsIMdbEnv *ev, mdb_kind *outTableKind)
NS_IMETHOD GetRowScope (nsIMdbEnv *ev, mdb_scope *outRowScope)
NS_IMETHOD GetMetaRow (nsIMdbEnv *ev, const mdbOid *inOptionalMetaRowOid, mdbOid *outOid, nsIMdbRow **acqRow)
NS_IMETHOD GetTableRowCursor (nsIMdbEnv *ev, mdb_pos inRowPos, nsIMdbTableRowCursor **acqCursor)
NS_IMETHOD PosToOid (nsIMdbEnv *ev, mdb_pos inRowPos, mdbOid *outOid)
NS_IMETHOD OidToPos (nsIMdbEnv *ev, const mdbOid *inOid, mdb_pos *outPos)
NS_IMETHOD PosToRow (nsIMdbEnv *ev, mdb_pos inRowPos, nsIMdbRow **acqRow)
NS_IMETHOD RowToPos (nsIMdbEnv *ev, nsIMdbRow *ioRow, mdb_pos *outPos)
NS_IMETHOD AddOid (nsIMdbEnv *ev, const mdbOid *inOid)
NS_IMETHOD HasOid (nsIMdbEnv *ev, const mdbOid *inOid, mdb_bool *outHasOid)
NS_IMETHOD CutOid (nsIMdbEnv *ev, const mdbOid *inOid)
NS_IMETHOD NewRow (nsIMdbEnv *ev, mdbOid *ioOid, nsIMdbRow **acqRow)
NS_IMETHOD AddRow (nsIMdbEnv *ev, nsIMdbRow *ioRow)
NS_IMETHOD HasRow (nsIMdbEnv *ev, nsIMdbRow *ioRow, mdb_bool *outHasRow)
NS_IMETHOD CutRow (nsIMdbEnv *ev, nsIMdbRow *ioRow)
NS_IMETHOD CutAllRows (nsIMdbEnv *ev)
NS_IMETHOD SearchColumnsHint (nsIMdbEnv *ev, const mdbColumnSet *inColumnSet)
NS_IMETHOD SortColumnsHint (nsIMdbEnv *ev, const mdbColumnSet *inColumnSet)
NS_IMETHOD StartBatchChangeHint (nsIMdbEnv *ev, const void *inLabel)
NS_IMETHOD EndBatchChangeHint (nsIMdbEnv *ev, const void *inLabel)
NS_IMETHOD FindRowMatches (nsIMdbEnv *ev, const mdbYarn *inPrefix, nsIMdbTableRowCursor **acqCursor)
NS_IMETHOD GetSearchColumns (nsIMdbEnv *ev, mdb_count *outCount, mdbColumnSet *outColSet)
NS_IMETHOD CanSortColumn (nsIMdbEnv *ev, mdb_column inColumn, mdb_bool *outCanSort)
NS_IMETHOD GetSorting (nsIMdbEnv *ev, mdb_column inColumn, nsIMdbSorting **acqSorting)
NS_IMETHOD SetSearchSorting (nsIMdbEnv *ev, mdb_column inColumn, nsIMdbSorting *ioSorting)
NS_IMETHOD MoveOid (nsIMdbEnv *ev, const mdbOid *inOid, mdb_pos inHintFromPos, mdb_pos inToPos, mdb_pos *outActualPos)
NS_IMETHOD MoveRow (nsIMdbEnv *ev, nsIMdbRow *ioRow, mdb_pos inHintFromPos, mdb_pos inToPos, mdb_pos *outActualPos)
NS_IMETHOD AddIndex (nsIMdbEnv *ev, mdb_column inColumn, nsIMdbThumb **acqThumb)
NS_IMETHOD CutIndex (nsIMdbEnv *ev, mdb_column inColumn, nsIMdbThumb **acqThumb)
NS_IMETHOD HasIndex (nsIMdbEnv *ev, mdb_column inColumn, mdb_bool *outHasIndex)
NS_IMETHOD EnableIndexOnSort (nsIMdbEnv *ev, mdb_column inColumn)
NS_IMETHOD QueryIndexOnSort (nsIMdbEnv *ev, mdb_column inColumn, mdb_bool *outIndexOnSort)
NS_IMETHOD DisableIndexOnSort (nsIMdbEnv *ev, mdb_column inColumn)
virtual void CloseMorkNode (morkEnv *ev)
void CloseHandle (morkEnv *ev)
mork_bool IsHandle () const
voidoperator new (size_t inSize, nsIMdbHeap &ioHeap, morkEnv *ev) CPP_THROW_NEW
mork_bool GoodHandleTag () const
void NewBadMagicHandleError (morkEnv *ev, mork_magic inMagic) const
void NewDownHandleError (morkEnv *ev) const
void NilFactoryError (morkEnv *ev) const
void NilHandleObjectError (morkEnv *ev) const
void NonNodeObjectError (morkEnv *ev) const
void NonOpenObjectError (morkEnv *ev) const
morkObjectGetGoodHandleObject (morkEnv *ev, mork_bool inMutable, mork_magic inMagicType, mork_bool inClosedOkay) const
morkEnvCanUseHandle (nsIMdbEnv *mev, mork_bool inMutable, mork_bool inClosedOkay, mdb_err *outErr) const
mdb_err Handle_IsFrozenMdbObject (nsIMdbEnv *ev, mdb_bool *outIsReadonly)
mdb_err Handle_GetMdbFactory (nsIMdbEnv *ev, nsIMdbFactory **acqFactory)
mdb_err Handle_GetWeakRefCount (nsIMdbEnv *ev, mdb_count *outCount)
mdb_err Handle_GetStrongRefCount (nsIMdbEnv *ev, mdb_count *outCount)
mdb_err Handle_AddWeakRef (nsIMdbEnv *ev)
mdb_err Handle_AddStrongRef (nsIMdbEnv *ev)
mdb_err Handle_CutWeakRef (nsIMdbEnv *ev)
mdb_err Handle_CutStrongRef (nsIMdbEnv *ev)
mdb_err Handle_CloseMdbObject (nsIMdbEnv *ev)
mdb_err Handle_IsOpenMdbObject (nsIMdbEnv *ev, mdb_bool *outOpen)
void SetFrozen ()
void SetMutable ()
void SetAsleep ()
mork_bool IsFrozen () const
mork_bool IsMutable () const
mork_bool IsAsleep () const
void SetNodeClean ()
void SetNodeDirty ()
mork_bool IsNodeClean () const
mork_bool IsNodeDirty () const
void ZapOld (morkEnv *ev, nsIMdbHeap *ioHeap)
void CloseNode (morkEnv *ev)
mdb_err CloseMdbObject (morkEnv *ev)
mork_bool IsNode () const
void RefsUnderUsesWarning (morkEnv *ev) const
void NonNodeError (morkEnv *ev) const
void NilHeapError (morkEnv *ev) const
void NonOpenNodeError (morkEnv *ev) const
void NonMutableNodeError (morkEnv *ev) const
void RefsOverflowWarning (morkEnv *ev) const
void UsesOverflowWarning (morkEnv *ev) const
void RefsUnderflowWarning (morkEnv *ev) const
void UsesUnderflowWarning (morkEnv *ev) const
mork_bool GoodRefs () const
mork_bool BadRefs () const
mork_uses StrongRefsOnly () const
mork_refs WeakRefsOnly () const
virtual mork_refs AddStrongRef (morkEnv *ev)
virtual mork_refs CutStrongRef (morkEnv *ev)
mork_refs AddWeakRef (morkEnv *ev)
mork_refs CutWeakRef (morkEnv *ev)
const char * GetNodeAccessAsString () const
const char * GetNodeUsageAsString () const
mork_usage NodeUsage () const
mork_bool IsHeapNode () const
mork_bool IsOpenNode () const
mork_bool IsShutNode () const
mork_bool IsDeadNode () const
mork_bool IsClosingNode () const
mork_bool IsOpenOrClosingNode () const
mork_bool HasNodeAccess () const
void MarkShut ()
void MarkClosing ()
void MarkDead ()

Static Public Member Functions

static orkinTableMakeTable (morkEnv *ev, morkTable *ioObject)
static void SlotWeakHandle (morkHandle *me, morkEnv *ev, morkHandle **ioSlot)
static void SlotStrongHandle (morkHandle *me, morkEnv *ev, morkHandle **ioSlot)
static voidMakeNew (size_t inSize, nsIMdbHeap &ioHeap, morkEnv *ev)
static void SlotWeakNode (morkNode *me, morkEnv *ev, morkNode **ioSlot)
static void SlotStrongNode (morkNode *me, morkEnv *ev, morkNode **ioSlot)

Public Attributes

mork_u4 mHandle_Tag
morkEnvmHandle_Env
morkHandleFace * mHandle_Face
morkObjectmHandle_Object
mork_magic mHandle_Magic
nsIMdbHeapmNode_Heap
mork_base mNode_Base
mork_derived mNode_Derived
mork_access mNode_Access
mork_usage mNode_Usage
mork_able mNode_Mutable
mork_load mNode_Load
mork_uses mNode_Uses
mork_refs mNode_Refs

Protected Member Functions

 orkinTable (morkEnv *ev, morkHandleFace *ioFace, morkTable *ioObject)
voidoperator new (size_t inSize, morkPool &ioPool, morkZone &ioZone, morkEnv *ev) CPP_THROW_NEW
voidoperator new (size_t inSize, morkPool &ioPool, morkEnv *ev) CPP_THROW_NEW
voidoperator new (size_t inSize, morkHandleFace *ioFace) CPP_THROW_NEW

Private Member Functions

 orkinTable (const orkinTable &other)
orkinTableoperator= (const orkinTable &other)

Friends

class morkHandleFrame

Detailed Description

Definition at line 67 of file orkinTable.h.


Constructor & Destructor Documentation

orkinTable::~orkinTable ( ) [virtual]

Definition at line 97 of file orkinTable.cpp.

{
}
orkinTable::orkinTable ( morkEnv ev,
morkHandleFace *  ioFace,
morkTable ioObject 
) [protected]

Definition at line 102 of file orkinTable.cpp.

: morkHandle(ev, ioFace, ioObject, morkMagic_kTable)
{
  // do not modify mNode_Derived; leave it equal to morkDerived_kHandle
}

Here is the caller graph for this function:

orkinTable::orkinTable ( const orkinTable other) [private]

Member Function Documentation

mdb_err orkinTable::AddIndex ( nsIMdbEnv ev,
mdb_column  inColumn,
nsIMdbThumb **  acqThumb 
) [virtual]

Implements nsIMdbTable.

Definition at line 1143 of file orkinTable.cpp.

{
  MORK_USED_1(inColumn);
  nsIMdbThumb* outThumb = 0;
  mdb_err outErr = 0;
  morkEnv* ev = this->CanUseTable(mev, /*inMutable*/ morkBool_kFalse, &outErr);
  if ( ev )
  {
    // ev->StubMethodOnlyError(); // legal to do nothing
     
    outErr = ev->AsErr();
  }
  if ( acqThumb )
    *acqThumb = outThumb;

  return outErr;
}

Here is the call graph for this function:

mdb_err orkinTable::AddOid ( nsIMdbEnv ev,
const mdbOid inOid 
) [virtual]

Implements nsIMdbTable.

Definition at line 695 of file orkinTable.cpp.

{
  MORK_USED_1(inOid);
  mdb_err outErr = 0;
  morkEnv* ev = this->CanUseTable(mev, /*inMutable*/ morkBool_kFalse, &outErr);
  if ( ev )
  {
    ev->StubMethodOnlyError();
    outErr = ev->AsErr();
  }
  return outErr;
}

Here is the call graph for this function:

mdb_err orkinTable::AddRow ( nsIMdbEnv ev,
nsIMdbRow ioRow 
) [virtual]

Implements nsIMdbTable.

Definition at line 789 of file orkinTable.cpp.

{
  mdb_err outErr = 0;
  morkEnv* ev = this->CanUseTable(mev, /*inMutable*/ morkBool_kFalse, &outErr);
  if ( ev )
  {
    morkRowObject *rowObj = (morkRowObject *) ioRow;
    morkRow* row = rowObj->mRowObject_Row;
    ((morkTable*) mHandle_Object)->AddRow(ev, row);
    outErr = ev->AsErr();
  }
  return outErr;
}

Here is the call graph for this function:

Definition at line 216 of file orkinTable.cpp.

{
  return this->Handle_AddStrongRef(mev);
}

Here is the call graph for this function:

mork_uses morkNode::AddStrongRef ( morkEnv ev) [virtual, inherited]

Reimplemented in morkTable.

Definition at line 510 of file morkNode.cpp.

{
  mork_uses outUses = 0;
  if ( this )
  {
    if ( this->IsNode() )
    {
      mork_uses uses = mNode_Uses;
      mork_refs refs = mNode_Refs;
      if ( refs < uses ) // need to fix broken refs/uses relation?
      { 
        this->RefsUnderUsesWarning(ev);
        mNode_Refs = mNode_Uses = refs = uses;
      }
      if ( refs < morkNode_kMaxRefCount ) // not too great?
      {
        mNode_Refs = ++refs;
        mNode_Uses = ++uses;
      }
      else
        this->RefsOverflowWarning(ev);

      outUses = uses;
    }
    else
      this->NonNodeError(ev);
  }
  else
    ev->NilPointerError();
  return outUses;
}

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 211 of file orkinTable.cpp.

{
  return this->Handle_AddWeakRef(mev);
}

Here is the call graph for this function:

mork_refs morkNode::AddWeakRef ( morkEnv ev) [inherited]

Definition at line 599 of file morkNode.cpp.

{
  mork_refs outRefs = 0;
  if ( this )
  {
    if ( this->IsNode() )
    {
      mork_refs refs = mNode_Refs;
      if ( refs < morkNode_kMaxRefCount ) // not too great?
        mNode_Refs = ++refs;
      else
        this->RefsOverflowWarning(ev);
        
      outRefs = refs;
    }
    else
      this->NonNodeError(ev);
  }
  else
    ev->NilPointerError();
  return outRefs;
}

Here is the call graph for this function:

Here is the caller graph for this function:

mork_bool morkNode::BadRefs ( ) const [inline, inherited]

Definition at line 217 of file morkNode.h.

{ return mNode_Refs < mNode_Uses; }
mdb_err orkinTable::BecomeContent ( nsIMdbEnv ev,
const mdbOid inOid 
) [virtual]

Implements nsIMdbCollection.

Definition at line 336 of file orkinTable.cpp.

{
  MORK_USED_1(inOid);
  mdb_err outErr = 0;
  morkEnv* ev = this->CanUseTable(mev, /*inMutable*/ morkBool_kFalse, &outErr);
  if ( ev )
  {
    // remember table->MaybeDirtySpaceStoreAndTable();
    
    morkTable* table = (morkTable*) mHandle_Object;
    MORK_USED_1(table);

    ev->StubMethodOnlyError();
    outErr = ev->AsErr();
  }
  return outErr;
}

Here is the call graph for this function:

mdb_err orkinTable::CanSortColumn ( nsIMdbEnv ev,
mdb_column  inColumn,
mdb_bool outCanSort 
) [virtual]

Implements nsIMdbTable.

Definition at line 996 of file orkinTable.cpp.

{
  MORK_USED_1(inColumn);
  mdb_bool canSort = mdbBool_kFalse;
  mdb_err outErr = 0;
  morkEnv* ev = this->CanUseTable(mev, /*inMutable*/ morkBool_kFalse, &outErr);
  if ( ev )
  {
    // ev->StubMethodOnlyError();
    outErr = ev->AsErr();
  }
  if ( outCanSort )
    *outCanSort = canSort;
  return outErr;
}

Here is the call graph for this function:

morkEnv * morkHandle::CanUseHandle ( nsIMdbEnv mev,
mork_bool  inMutable,
mork_bool  inClosedOkay,
mdb_err outErr 
) const [inherited]

Definition at line 236 of file morkHandle.cpp.

{
  morkEnv* outEnv = 0;
  morkEnv* ev = morkEnv::FromMdbEnv(mev);
  if ( ev )
  {
    morkObject* obj = this->GetGoodHandleObject(ev, inMutable,
      /*magic*/ 0, inClosedOkay);
    if ( obj )
    {
      outEnv = ev;
    }
    *outErr = ev->AsErr();
  }
  MORK_ASSERT(outEnv || inClosedOkay);
  return outEnv;
}

Here is the call graph for this function:

Here is the caller graph for this function:

morkEnv * orkinTable::CanUseTable ( nsIMdbEnv mev,
mork_bool  inMutable,
mdb_err outErr 
) const

Definition at line 129 of file orkinTable.cpp.

{
  morkEnv* outEnv = 0;
  morkEnv* ev = morkEnv::FromMdbEnv(mev);
  if ( ev )
  {
    morkTable* self = (morkTable*)
      this->GetGoodHandleObject(ev, inMutable, morkMagic_kTable,
        /*inClosedOkay*/ morkBool_kFalse);
    if ( self )
    {
      if ( self->IsTable() )
        outEnv = ev;
      else
        self->NonTableTypeError(ev);
    }
    *outErr = ev->AsErr();
  }
  MORK_ASSERT(outEnv);
  return outEnv;
}

Here is the call graph for this function:

void morkHandle::CloseHandle ( morkEnv ev) [inherited]

Definition at line 121 of file morkHandle.cpp.

{
  if ( this )
  {
    if ( this->IsNode() )
    {
      morkObject* obj = mHandle_Object;
      mork_bool objDidRefSelf = ( obj && obj->mObject_Handle == this );
      if ( objDidRefSelf )
        obj->mObject_Handle = 0; // drop the reference
      
      morkObject::SlotStrongObject((morkObject*) 0, ev, &mHandle_Object);
      mHandle_Magic = 0;
      // note mHandle_Tag MUST stay morkHandle_kTag for morkNode::ZapOld()
      this->MarkShut();

      if ( objDidRefSelf )
        this->CutWeakRef(ev); // do last, because it might self destroy
    }
    else
      this->NonNodeError(ev);
  }
  else
    ev->NilPointerError();
}

Here is the call graph for this function:

Here is the caller graph for this function:

Reimplemented from morkNode.

Definition at line 233 of file orkinTable.cpp.

{
  return this->Handle_CloseMdbObject(mev);
}

Here is the call graph for this function:

mdb_err morkNode::CloseMdbObject ( morkEnv ev) [inherited]

Definition at line 243 of file morkNode.cpp.

{
  // if only one ref, Handle_CutStrongRef will clean up better.
  if (mNode_Uses == 1)
    return CutStrongRef(ev);

  mdb_err outErr = 0;
  
  if ( IsNode() && IsOpenNode() )
  {
    if ( ev )
    {
      CloseMorkNode(ev);
      outErr = ev->AsErr();
    }
  }
  return outErr;
}

Here is the call graph for this function:

Here is the caller graph for this function:

void morkHandle::CloseMorkNode ( morkEnv ev) [virtual, inherited]

Reimplemented from morkNode.

Reimplemented in orkinEnv.

Definition at line 68 of file morkHandle.cpp.

{
  if ( this->IsOpenNode() )
  {
    this->MarkClosing();
    this->CloseHandle(ev);
    this->MarkShut();
  }
}

Here is the call graph for this function:

Here is the caller graph for this function:

void morkNode::CloseNode ( morkEnv ev) [inherited]

Definition at line 384 of file morkNode.cpp.

{
  if ( this )
  {
    if ( this->IsNode() )
      this->MarkShut();
    else
      this->NonNodeError(ev);
  }
  else
    ev->NilPointerError();
}

Here is the call graph for this function:

Here is the caller graph for this function:

Implements nsIMdbTable.

Definition at line 844 of file orkinTable.cpp.

{
  mdb_err outErr = 0;
  morkEnv* ev = this->CanUseTable(mev, /*inMutable*/ morkBool_kFalse, &outErr);
  if ( ev )
  {
    ((morkTable*) mHandle_Object)->CutAllRows(ev);
    outErr = ev->AsErr();
  }
  return outErr;
}

Here is the call graph for this function:

mdb_err orkinTable::CutIndex ( nsIMdbEnv ev,
mdb_column  inColumn,
nsIMdbThumb **  acqThumb 
) [virtual]

Implements nsIMdbTable.

Definition at line 1167 of file orkinTable.cpp.

{
  MORK_USED_1(inColumn);
  mdb_err outErr = 0;
  nsIMdbThumb* outThumb = 0;
  morkEnv* ev = this->CanUseTable(mev, /*inMutable*/ morkBool_kFalse, &outErr);
  if ( ev )
  {
    // ev->StubMethodOnlyError(); // legal to do nothing
    
    outErr = ev->AsErr();
  }
  if ( acqThumb )
    *acqThumb = outThumb;
    
  return outErr;
}

Here is the call graph for this function:

mdb_err orkinTable::CutOid ( nsIMdbEnv ev,
const mdbOid inOid 
) [virtual]

Implements nsIMdbTable.

Definition at line 728 of file orkinTable.cpp.

{
  mdb_err outErr = 0;
  morkEnv* ev = this->CanUseTable(mev, /*inMutable*/ morkBool_kFalse, &outErr);
  if ( ev )
  {
    morkTable* table = (morkTable*) mHandle_Object;
    morkStore* store = table->mTable_Store;
    if ( inOid && store )
    {
      morkRow* row = store->GetRow(ev, inOid);
      if ( row )
        table->CutRow(ev, row);
    }
    else
      ev->NilPointerError();
      
    outErr = ev->AsErr();
  }
  return outErr;
}

Here is the call graph for this function:

mdb_err orkinTable::CutRow ( nsIMdbEnv ev,
nsIMdbRow ioRow 
) [virtual]

Implements nsIMdbTable.

Definition at line 827 of file orkinTable.cpp.

{
  mdb_err outErr = 0;
  morkEnv* ev = this->CanUseTable(mev, /*inMutable*/ morkBool_kFalse, &outErr);
  if ( ev )
  {
    morkRowObject *rowObj = (morkRowObject *) ioRow;
    morkRow* row = rowObj->mRowObject_Row;
    ((morkTable*) mHandle_Object)->CutRow(ev, row);
    outErr = ev->AsErr();
  }
  return outErr;
}

Here is the call graph for this function:

Definition at line 227 of file orkinTable.cpp.

{
  return this->Handle_CutStrongRef(mev);
}

Here is the call graph for this function:

mork_uses morkNode::CutStrongRef ( morkEnv ev) [virtual, inherited]

Reimplemented in morkTable.

Definition at line 580 of file morkNode.cpp.

{
  mork_refs outRefs = 0;
  if ( this )
  {
    if ( this->IsNode() )
    {
      if ( this->cut_use_count(ev) )
        outRefs = this->CutWeakRef(ev);
    }
    else
      this->NonNodeError(ev);
  }
  else
    ev->NilPointerError();
  return outRefs;
}

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 222 of file orkinTable.cpp.

{
  return this->Handle_CutWeakRef(mev);
}

Here is the call graph for this function:

mork_refs morkNode::CutWeakRef ( morkEnv ev) [inherited]

Definition at line 623 of file morkNode.cpp.

{
  mork_refs outRefs = 0;
  if ( this )
  {
    if ( this->IsNode() )
    {
      mork_uses uses = mNode_Uses;
      mork_refs refs = mNode_Refs;
      if ( refs ) // not yet zero?
        mNode_Refs = --refs;
      else
        this->RefsUnderflowWarning(ev);

      if ( refs < uses ) // need to fix broken refs/uses relation?
      { 
        this->RefsUnderUsesWarning(ev);
        mNode_Refs = mNode_Uses = refs = uses;
      }
        
      outRefs = refs;
      if ( !refs ) // last reference gone? time to destroy node?
        this->ZapOld(ev, mNode_Heap); // self destroy, use this no longer
    }
    else
      this->NonNodeError(ev);
  }
  else
    ev->NilPointerError();
  return outRefs;
}

Here is the call graph for this function:

Here is the caller graph for this function:

mdb_err orkinTable::DisableIndexOnSort ( nsIMdbEnv ev,
mdb_column  inColumn 
) [virtual]

Implements nsIMdbTable.

Definition at line 1247 of file orkinTable.cpp.

{
  MORK_USED_1(inColumn);
  mdb_err outErr = 0;
  morkEnv* ev = this->CanUseTable(mev, /*inMutable*/ morkBool_kFalse, &outErr);
  if ( ev )
  {
    // ev->StubMethodOnlyError(); // legal to do nothing
    outErr = ev->AsErr();
  }
  return outErr;
}

Here is the call graph for this function:

Implements nsIMdbCollection.

Definition at line 358 of file orkinTable.cpp.

{
  mdb_err outErr = 0;
  morkEnv* ev = this->CanUseTable(mev, /*inMutable*/ morkBool_kFalse, &outErr);
  if ( ev )
  {
    morkTable* table;
    table = (morkTable*) mHandle_Object;
    // ev->StubMethodOnlyError(); // okay to do nothing
    outErr = ev->AsErr();
  }
  return outErr;
}

Here is the call graph for this function:

mdb_err orkinTable::EnableIndexOnSort ( nsIMdbEnv ev,
mdb_column  inColumn 
) [virtual]

Implements nsIMdbTable.

Definition at line 1211 of file orkinTable.cpp.

{
  MORK_USED_1(inColumn);
  mdb_err outErr = 0;
  morkEnv* ev = this->CanUseTable(mev, /*inMutable*/ morkBool_kFalse, &outErr);
  if ( ev )
  {
    // ev->StubMethodOnlyError(); // legal to do nothing
    outErr = ev->AsErr();
  }
  return outErr;
}

Here is the call graph for this function:

mdb_err orkinTable::EndBatchChangeHint ( nsIMdbEnv ev,
const void inLabel 
) [virtual]

Implements nsIMdbTable.

Definition at line 966 of file orkinTable.cpp.

{
  MORK_USED_1(inLabel);
  mdb_err outErr = 0;
  morkEnv* ev = this->CanUseTable(mev, /*inMutable*/ morkBool_kFalse, &outErr);
  if ( ev )
  {
    // ev->StubMethodOnlyError(); // legal to do nothing
    outErr = ev->AsErr();
  }
  return outErr;
}

Here is the call graph for this function:

mdb_err orkinTable::FindRowMatches ( nsIMdbEnv ev,
const mdbYarn inPrefix,
nsIMdbTableRowCursor **  acqCursor 
) [virtual]

Implements nsIMdbTable.

Definition at line 860 of file orkinTable.cpp.

{
  MORK_USED_1(inPrefix);
  nsIMdbTableRowCursor* outCursor = 0;
  mdb_err outErr = 0;
  morkEnv* ev = this->CanUseTable(mev, /*inMutable*/ morkBool_kFalse, &outErr);
  if ( ev )
  {
    ev->StubMethodOnlyError();
    outErr = ev->AsErr();
  }
  if ( acqCursor )
    *acqCursor = outCursor;
  return outErr;
}

Here is the call graph for this function:

mdb_err orkinTable::GetCount ( nsIMdbEnv ev,
mdb_count outCount 
) [virtual]

Implements nsIMdbCollection.

Definition at line 269 of file orkinTable.cpp.

{
  mdb_err outErr = 0;
  mdb_count count = 0;
  morkEnv* ev = this->CanUseTable(mev, /*inMutable*/ morkBool_kFalse, &outErr);
  if ( ev )
  {
    morkTable* table = (morkTable*) mHandle_Object;
    count = table->mTable_RowArray.mArray_Fill;
    outErr = ev->AsErr();
  }
  if ( outCount )
    *outCount = count;
  return outErr;
}

Here is the call graph for this function:

mdb_err orkinTable::GetCursor ( nsIMdbEnv ev,
mdb_pos  inMemberPos,
nsIMdbCursor **  acqCursor 
) [virtual]

Implements nsIMdbCollection.

Definition at line 309 of file orkinTable.cpp.

{
  return this->GetTableRowCursor(mev, inMemberPos,
    (nsIMdbTableRowCursor**) acqCursor);
}

Here is the call graph for this function:

morkObject * morkHandle::GetGoodHandleObject ( morkEnv ev,
mork_bool  inMutable,
mork_magic  inMagicType,
mork_bool  inClosedOkay 
) const [inherited]

Definition at line 194 of file morkHandle.cpp.

{
  morkObject* outObject = 0;
  if ( this->IsHandle() && this->GoodHandleTag() &&
    ( inClosedOkay || this->IsOpenNode() ) )
  {
    if ( !inMagicType || mHandle_Magic == inMagicType )
    {
      morkObject* obj = this->mHandle_Object;
      if ( obj )
      {
        if ( obj->IsNode() )
        {
          if ( inClosedOkay || obj->IsOpenNode() )
          {
            if ( this->IsMutable() || !inMutable )
              outObject = obj;
            else
              this->NonMutableNodeError(ev);
          }
          else
            this->NonOpenObjectError(ev);
        }
        else
          this->NonNodeObjectError(ev);
      }
      else if ( !inClosedOkay )
        this->NilHandleObjectError(ev);
    }
    else
      this->NewBadMagicHandleError(ev, inMagicType);
  }
  else
    this->NewDownHandleError(ev);
  
  MORK_ASSERT(outObject || inClosedOkay);
  return outObject;
}

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 190 of file orkinTable.cpp.

{
  return this->Handle_GetMdbFactory(mev, acqFactory);
} 

Here is the call graph for this function:

mdb_err orkinTable::GetMetaRow ( nsIMdbEnv ev,
const mdbOid inOptionalMetaRowOid,
mdbOid outOid,
nsIMdbRow **  acqRow 
) [virtual]

Implements nsIMdbTable.

Definition at line 512 of file orkinTable.cpp.

{
  mdb_err outErr = 0;
  nsIMdbRow* outRow = 0;
  morkEnv* ev = this->CanUseTable(mev, /*inMutable*/ morkBool_kFalse, &outErr);
  if ( ev )
  {
    morkTable* table = (morkTable*) mHandle_Object;
    morkRow* row = table->GetMetaRow(ev, inOptionalMetaRowOid);
    if ( row && ev->Good() )
    {
      if ( outOid )
        *outOid = row->mRow_Oid;
        
      outRow = row->AcquireRowHandle(ev, table->mTable_Store);
    }
    outErr = ev->AsErr();
  }
  if ( acqRow )
    *acqRow = outRow;
    
  if ( ev->Bad() && outOid )
  {
    outOid->mOid_Scope = 0;
    outOid->mOid_Id = morkRow_kMinusOneRid;
  }
  return outErr;
}

Here is the call graph for this function:

const char * morkNode::GetNodeAccessAsString ( ) const [inherited]

Definition at line 658 of file morkNode.cpp.

{
  const char* outString = morkNode_kBroken;
  switch( mNode_Access )
  {
    case morkAccess_kOpen: outString = "open"; break;
    case morkAccess_kClosing: outString = "closing"; break;
    case morkAccess_kShut: outString = "shut"; break;
    case morkAccess_kDead: outString = "dead"; break;
  }
  return outString;
}
const char * morkNode::GetNodeUsageAsString ( ) const [inherited]

Definition at line 672 of file morkNode.cpp.

{
  const char* outString = morkNode_kBroken;
  switch( mNode_Usage )
  {
    case morkUsage_kHeap: outString = "heap"; break;
    case morkUsage_kStack: outString = "stack"; break;
    case morkUsage_kMember: outString = "member"; break;
    case morkUsage_kGlobal: outString = "global"; break;
    case morkUsage_kPool: outString = "pool"; break;
    case morkUsage_kNone: outString = "none"; break;
  }
  return outString;
}
mdb_err orkinTable::GetOid ( nsIMdbEnv ev,
mdbOid outOid 
) [virtual]

Implements nsIMdbCollection.

Definition at line 321 of file orkinTable.cpp.

{
  mdb_err outErr = 0;
  morkEnv* ev = this->CanUseTable(mev, /*inMutable*/ morkBool_kFalse, &outErr);
  if ( ev )
  {
    morkTable* table = (morkTable*) mHandle_Object;
    table->GetTableOid(ev, outOid);
    outErr = ev->AsErr();
  }
  return outErr;
}

Here is the call graph for this function:

mdb_err orkinTable::GetPort ( nsIMdbEnv ev,
nsIMdbPort **  acqPort 
) [virtual]

Implements nsIMdbCollection.

Definition at line 287 of file orkinTable.cpp.

{
  mdb_err outErr = 0;
  nsIMdbPort* outPort = 0;
  morkEnv* ev = this->CanUseTable(mev, /*inMutable*/ morkBool_kFalse, &outErr);
  if ( ev )
  {
    morkTable* table = (morkTable*) mHandle_Object;
    morkStore* store = table->mTable_Store;
    if ( store )
      outPort = store->AcquireStoreHandle(ev);
    outErr = ev->AsErr();
  }
  if ( acqPort )
    *acqPort = outPort;
  return outErr;
}

Here is the call graph for this function:

mdb_err orkinTable::GetRowScope ( nsIMdbEnv ev,
mdb_scope outRowScope 
) [virtual]

Implements nsIMdbTable.

Definition at line 490 of file orkinTable.cpp.

{
  mdb_err outErr = 0;
  mdb_scope rowScope = 0;
  morkEnv* ev = this->CanUseTable(mev, /*inMutable*/ morkBool_kFalse, &outErr);
  if ( ev )
  {
    morkTable* table = (morkTable*) mHandle_Object;
    morkRowSpace* space = table->mTable_RowSpace;
    if ( space )
      rowScope = space->SpaceScope();
    else
      table->NilRowSpaceError(ev);

    outErr = ev->AsErr();
  }
  if ( outRowScope )
    *outRowScope = rowScope;
  return outErr;
}

Here is the call graph for this function:

mdb_err orkinTable::GetSearchColumns ( nsIMdbEnv ev,
mdb_count outCount,
mdbColumnSet outColSet 
) [virtual]

Implements nsIMdbTable.

Definition at line 880 of file orkinTable.cpp.

{
  MORK_USED_1(outColSet);
  mdb_count count = 0;
  mdb_err outErr = 0;
//  nsIMdbThumb* outThumb = 0;
  morkEnv* ev = this->CanUseTable(mev, /*inMutable*/ morkBool_kFalse, &outErr);
  if ( ev )
  {
    ev->StubMethodOnlyError();
    outErr = ev->AsErr();
  }
  if ( outCount )
    *outCount = count;
  return outErr;
}

Here is the call graph for this function:

mdb_err orkinTable::GetSeed ( nsIMdbEnv ev,
mdb_seed outSeed 
) [virtual]

Implements nsIMdbCollection.

Definition at line 251 of file orkinTable.cpp.

{
  mdb_err outErr = 0;
  mdb_seed seed = 0;
  morkEnv* ev = this->CanUseTable(mev, /*inMutable*/ morkBool_kFalse, &outErr);
  if ( ev )
  {
    morkTable* table = (morkTable*) mHandle_Object;
    seed = table->mTable_RowArray.mArray_Seed;
    outErr = ev->AsErr();
  }
  if ( outSeed )
    *outSeed = seed;
  return outErr;
}

Here is the call graph for this function:

mdb_err orkinTable::GetSorting ( nsIMdbEnv ev,
mdb_column  inColumn,
nsIMdbSorting **  acqSorting 
) [virtual]

Implements nsIMdbTable.

Definition at line 1016 of file orkinTable.cpp.

{
  MORK_USED_1(inColumn);
  nsIMdbSorting* outSorting = 0;
  mdb_err outErr = 0;
  morkEnv* ev = this->CanUseTable(mev, /*inMutable*/ morkBool_kFalse, &outErr);
  if ( ev )
  {
    ev->StubMethodOnlyError();
    outErr = ev->AsErr();
  }
  if ( acqSorting )
    *acqSorting = outSorting;
  return outErr;
}

Here is the call graph for this function:

Definition at line 204 of file orkinTable.cpp.

{
  return this->Handle_GetStrongRefCount(mev, outCount);
}

Here is the call graph for this function:

mdb_err orkinTable::GetTableBeVerbose ( nsIMdbEnv ev,
mdb_bool outBeVerbose 
) [virtual]

Implements nsIMdbTable.

Definition at line 421 of file orkinTable.cpp.

{
  mdb_err outErr = 0;
  mdb_bool beVerbose = morkBool_kFalse;
  morkEnv* ev = this->CanUseTable(mev, /*inMutable*/ morkBool_kFalse, &outErr);
  if ( ev )
  {
    morkTable* table = (morkTable*) mHandle_Object;
    beVerbose = table->IsTableVerbose();
    outErr = ev->AsErr();
  }
  if ( outBeVerbose )
    *outBeVerbose = beVerbose;
  return outErr;
}

Here is the call graph for this function:

mdb_err orkinTable::GetTableIsUnique ( nsIMdbEnv ev,
mdb_bool outIsUnique 
) [virtual]

Implements nsIMdbTable.

Definition at line 456 of file orkinTable.cpp.

{
  mdb_err outErr = 0;
  mdb_bool isUnique = morkBool_kFalse;
  morkEnv* ev = this->CanUseTable(mev, /*inMutable*/ morkBool_kFalse, &outErr);
  if ( ev )
  {
    morkTable* table = (morkTable*) mHandle_Object;
    isUnique = table->IsTableUnique();
    outErr = ev->AsErr();
  }
  if ( outIsUnique )
    *outIsUnique = isUnique;
  return outErr;
}

Here is the call graph for this function:

mdb_err orkinTable::GetTableKind ( nsIMdbEnv ev,
mdb_kind outTableKind 
) [virtual]

Implements nsIMdbTable.

Definition at line 473 of file orkinTable.cpp.

{
  mdb_err outErr = 0;
  mdb_kind tableKind = 0;
  morkEnv* ev = this->CanUseTable(mev, /*inMutable*/ morkBool_kFalse, &outErr);
  if ( ev )
  {
    morkTable* table = (morkTable*) mHandle_Object;
    tableKind = table->mTable_Kind;
    outErr = ev->AsErr();
  }
  if ( outTableKind )
    *outTableKind = tableKind;
  return outErr;
}

Here is the call graph for this function:

mdb_err orkinTable::GetTablePriority ( nsIMdbEnv ev,
mdb_priority outPrio 
) [virtual]

Implements nsIMdbTable.

Definition at line 398 of file orkinTable.cpp.

{
  mdb_err outErr = 0;
  mork_priority prio = 0;
  morkEnv* ev = this->CanUseTable(mev, /*inMutable*/ morkBool_kFalse, &outErr);
  if ( ev )
  {
    morkTable* table = (morkTable*) mHandle_Object;
    prio = table->mTable_Priority;
    if ( prio > morkPriority_kMax )
    {
      prio = morkPriority_kMax;
      table->mTable_Priority = prio;
    }
    outErr = ev->AsErr();
  }
  if ( outPrio )
    *outPrio = prio;
  return outErr;
}

Here is the call graph for this function:

mdb_err orkinTable::GetTableRowCursor ( nsIMdbEnv ev,
mdb_pos  inRowPos,
nsIMdbTableRowCursor **  acqCursor 
) [virtual]

Implements nsIMdbTable.

Definition at line 570 of file orkinTable.cpp.

{
  mdb_err outErr = 0;
  nsIMdbTableRowCursor* outCursor = 0;
  morkEnv* ev = this->CanUseTable(mev, /*inMutable*/ morkBool_kFalse, &outErr);
  if ( ev )
  {
    morkTableRowCursor* cursor =
      ((morkTable*) mHandle_Object)->NewTableRowCursor(ev, inRowPos);
    if ( cursor )
    {
      if ( ev->Good() )
      {
        // cursor->mCursor_Seed = (mork_seed) inRowPos;
        outCursor = cursor->AcquireTableRowCursorHandle(ev);
      }
      cursor->CutStrongRef(mev);
    }
      
    outErr = ev->AsErr();
  }
  if ( acqCursor )
    *acqCursor = outCursor;
  return outErr;
}

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 198 of file orkinTable.cpp.

{
  return this->Handle_GetWeakRefCount(mev, outCount);
}  

Here is the call graph for this function:

mork_bool morkHandle::GoodHandleTag ( ) const [inline, inherited]

Definition at line 129 of file morkHandle.h.

  { return mHandle_Tag == morkHandle_kTag; }

Here is the caller graph for this function:

mork_bool morkNode::GoodRefs ( ) const [inline, inherited]

Definition at line 216 of file morkNode.h.

{ return mNode_Refs >= mNode_Uses; }

Definition at line 372 of file morkHandle.cpp.

{
  mdb_err outErr = 0;
  
  morkEnv* ev = CanUseHandle(mev, /*inMutable*/ morkBool_kFalse,
    /*inClosedOkay*/ morkBool_kFalse, &outErr);
  if ( ev )
  {
    this->AddStrongRef(ev);
    outErr = ev->AsErr();
  }
    
  return outErr;
}

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 357 of file morkHandle.cpp.

{
  mdb_err outErr = 0;
  
  morkEnv* ev = CanUseHandle(mev, /*inMutable*/ morkBool_kFalse,
    /*inClosedOkay*/ morkBool_kTrue, &outErr);
  if ( ev )
  {
    this->AddWeakRef(ev);
    outErr = ev->AsErr();
  }
    
  return outErr;
}

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 417 of file morkHandle.cpp.

{
  // if only one ref, Handle_CutStrongRef will clean up better.
  if (mNode_Uses == 1)
    return Handle_CutStrongRef(mev);

  mdb_err outErr = 0;
  
  if ( this->IsNode() && this->IsOpenNode() )
  {
    morkEnv* ev = CanUseHandle(mev, /*inMutable*/ morkBool_kFalse,
    /*inClosedOkay*/ morkBool_kTrue, &outErr);
    if ( ev )
    {
      morkObject* object = mHandle_Object;
      if ( object && object->IsNode() && object->IsOpenNode() )
        object->CloseMorkNode(ev);
        
      this->CloseMorkNode(ev);
      outErr = ev->AsErr();
    }
  }
  return outErr;
}

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 403 of file morkHandle.cpp.

{
  mdb_err outErr = 0;
  morkEnv* ev = CanUseHandle(mev, /*inMutable*/ morkBool_kFalse,
    /*inClosedOkay*/ morkBool_kTrue, &outErr);
  if ( ev )
  {
    this->CutStrongRef(ev);
    outErr = ev->AsErr();
  }
  return outErr;
}

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 388 of file morkHandle.cpp.

{
  mdb_err outErr = 0;
  
  morkEnv* ev = CanUseHandle(mev, /*inMutable*/ morkBool_kFalse,
    /*inClosedOkay*/ morkBool_kTrue, &outErr);
  if ( ev )
  {
    this->CutWeakRef(ev);
    outErr = ev->AsErr();
  }
    
  return outErr;
}

Here is the call graph for this function:

Here is the caller graph for this function:

mdb_err morkHandle::Handle_GetMdbFactory ( nsIMdbEnv ev,
nsIMdbFactory **  acqFactory 
) [inherited]

Definition at line 283 of file morkHandle.cpp.

{
  mdb_err outErr = 0;
  nsIMdbFactory* handle = 0;
  
  morkEnv* ev = CanUseHandle(mev, /*inMutable*/ morkBool_kFalse,
    /*inClosedOkay*/ morkBool_kTrue, &outErr);
  if ( ev )
  {
    morkFactory* factory = ev->mEnv_Factory;
    if ( factory )
    {
      handle = factory;
      NS_ADDREF(handle);
    }
    else
      this->NilFactoryError(ev);
      
    outErr = ev->AsErr();
  }

  MORK_ASSERT(acqFactory);
  if ( acqFactory )
    *acqFactory = handle;

  return outErr;
} 

Here is the call graph for this function:

Here is the caller graph for this function:

mdb_err morkHandle::Handle_GetStrongRefCount ( nsIMdbEnv ev,
mdb_count outCount 
) [inherited]

Definition at line 335 of file morkHandle.cpp.

{
  mdb_err outErr = 0;
  mdb_count count = 0;
  
  morkEnv* ev = CanUseHandle(mev, /*inMutable*/ morkBool_kFalse,
    /*inClosedOkay*/ morkBool_kTrue, &outErr);
  if ( ev )
  {
    count = this->StrongRefsOnly();
    
    outErr = ev->AsErr();
  }
  MORK_ASSERT(outCount);
  if ( outCount )
    *outCount = count;
    
  return outErr;
}

Here is the call graph for this function:

Here is the caller graph for this function:

mdb_err morkHandle::Handle_GetWeakRefCount ( nsIMdbEnv ev,
mdb_count outCount 
) [inherited]

Definition at line 314 of file morkHandle.cpp.

{
  mdb_err outErr = 0;
  mdb_count count = 0;
  
  morkEnv* ev = CanUseHandle(mev, /*inMutable*/ morkBool_kFalse,
    /*inClosedOkay*/ morkBool_kTrue, &outErr);
  if ( ev )
  {
    count = this->WeakRefsOnly();
    
    outErr = ev->AsErr();
  }
  MORK_ASSERT(outCount);
  if ( outCount )
    *outCount = count;
    
  return outErr;
}  

Here is the call graph for this function:

Here is the caller graph for this function:

mdb_err morkHandle::Handle_IsFrozenMdbObject ( nsIMdbEnv ev,
mdb_bool outIsReadonly 
) [inherited]

Definition at line 259 of file morkHandle.cpp.

{
  mdb_err outErr = 0;
  mdb_bool readOnly = mdbBool_kTrue;
  
  morkEnv* ev = CanUseHandle(mev, /*inMutable*/ morkBool_kFalse,
    /*inClosedOkay*/ morkBool_kTrue, &outErr);
  if ( ev )
  {
    readOnly = mHandle_Object->IsFrozen();
    
    outErr = ev->AsErr();
  }
  MORK_ASSERT(outIsReadonly);
  if ( outIsReadonly )
    *outIsReadonly = readOnly;

  return outErr;
}

Here is the call graph for this function:

Here is the caller graph for this function:

mdb_err morkHandle::Handle_IsOpenMdbObject ( nsIMdbEnv ev,
mdb_bool outOpen 
) [inherited]

Definition at line 444 of file morkHandle.cpp.

{
  MORK_USED_1(mev);
  mdb_err outErr = 0;
  
  MORK_ASSERT(outOpen);
  if ( outOpen )
    *outOpen = this->IsOpenNode();
      
  return outErr;
}

Here is the call graph for this function:

Here is the caller graph for this function:

mdb_err orkinTable::HasIndex ( nsIMdbEnv ev,
mdb_column  inColumn,
mdb_bool outHasIndex 
) [virtual]

Implements nsIMdbTable.

Definition at line 1191 of file orkinTable.cpp.

{
  MORK_USED_1(inColumn);
  mdb_bool hasIndex = morkBool_kFalse;
  mdb_err outErr = 0;
  morkEnv* ev = this->CanUseTable(mev, /*inMutable*/ morkBool_kFalse, &outErr);
  if ( ev )
  {
      
    outErr = ev->AsErr();
  }
  if ( outHasIndex )
    *outHasIndex = hasIndex;
  return outErr;
}

Here is the call graph for this function:

mork_bool morkNode::HasNodeAccess ( ) const [inline, inherited]

Definition at line 251 of file morkNode.h.

  { return ( IsOpenNode() || IsShutNode() || IsClosingNode() ); }

Here is the call graph for this function:

mdb_err orkinTable::HasOid ( nsIMdbEnv ev,
const mdbOid inOid,
mdb_bool outHasOid 
) [virtual]

Implements nsIMdbTable.

Definition at line 711 of file orkinTable.cpp.

{
  mdb_err outErr = 0;
  morkEnv* ev = this->CanUseTable(mev, /*inMutable*/ morkBool_kFalse, &outErr);
  if ( ev )
  {
    if ( outHasOid )
      *outHasOid = ((morkTable*) mHandle_Object)->MapHasOid(ev, inOid);
    outErr = ev->AsErr();
  }
  return outErr;
}

Here is the call graph for this function:

mdb_err orkinTable::HasRow ( nsIMdbEnv ev,
nsIMdbRow ioRow,
mdb_bool outHasRow 
) [virtual]

Implements nsIMdbTable.

Definition at line 806 of file orkinTable.cpp.

{
  mdb_err outErr = 0;
  morkEnv* ev = this->CanUseTable(mev, /*inMutable*/ morkBool_kFalse, &outErr);
  if ( ev )
  {
    morkRowObject *rowObj = (morkRowObject *) ioRow;
    morkRow* row = rowObj->mRowObject_Row;
    morkTable* table = (morkTable*) mHandle_Object;
    if ( outBool )
      *outBool = table->MapHasOid(ev, &row->mRow_Oid);
    outErr = ev->AsErr();
  }
  return outErr;
}

Here is the call graph for this function:

mork_bool morkNode::IsAsleep ( ) const [inline, inherited]

Definition at line 142 of file morkNode.h.

mork_bool morkNode::IsClosingNode ( ) const [inline, inherited]

Definition at line 245 of file morkNode.h.

Here is the caller graph for this function:

mork_bool morkNode::IsDeadNode ( ) const [inline, inherited]

Definition at line 242 of file morkNode.h.

Here is the caller graph for this function:

mork_bool morkNode::IsFrozen ( ) const [inline, inherited]

Definition at line 140 of file morkNode.h.

Here is the caller graph for this function:

mdb_err orkinTable::IsFrozenMdbObject ( nsIMdbEnv ev,
mdb_bool outIsReadonly 
)

Definition at line 181 of file orkinTable.cpp.

{
  return this->Handle_IsFrozenMdbObject(mev, outIsReadonly);
}

Here is the call graph for this function:

mork_bool morkHandle::IsHandle ( ) const [inline, inherited]

Definition at line 113 of file morkHandle.h.

Here is the call graph for this function:

Here is the caller graph for this function:

mork_bool morkNode::IsHeapNode ( ) const [inline, inherited]

Definition at line 233 of file morkNode.h.

  { return mNode_Usage == morkUsage_kHeap; }
mork_bool morkNode::IsMutable ( ) const [inline, inherited]

Definition at line 141 of file morkNode.h.

Here is the caller graph for this function:

mork_bool morkNode::IsNode ( ) const [inline, inherited]

Definition at line 193 of file morkNode.h.

  { return mNode_Base == morkBase_kNode; }
mork_bool morkNode::IsNodeClean ( ) const [inline, inherited]

Definition at line 147 of file morkNode.h.

{ return mNode_Load == morkLoad_kClean; }

Here is the caller graph for this function:

mork_bool morkNode::IsNodeDirty ( ) const [inline, inherited]

Definition at line 148 of file morkNode.h.

{ return mNode_Load == morkLoad_kDirty; }

Here is the caller graph for this function:

Definition at line 239 of file orkinTable.cpp.

{
  return this->Handle_IsOpenMdbObject(mev, outOpen);
}

Here is the call graph for this function:

mork_bool morkNode::IsOpenNode ( ) const [inline, inherited]

Definition at line 236 of file morkNode.h.

mork_bool morkNode::IsOpenOrClosingNode ( ) const [inline, inherited]

Definition at line 248 of file morkNode.h.

  { return IsOpenNode() || IsClosingNode(); }

Here is the call graph for this function:

Here is the caller graph for this function:

mork_bool orkinTable::IsOrkinTable ( ) const [inline]

Definition at line 111 of file orkinTable.h.

Here is the caller graph for this function:

Definition at line 114 of file orkinTable.h.

  { return this->IsHandle() && this->IsOrkinTable(); }

Here is the call graph for this function:

mork_bool morkNode::IsShutNode ( ) const [inline, inherited]

Definition at line 239 of file morkNode.h.

Here is the caller graph for this function:

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

Definition at line 177 of file morkNode.cpp.

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

Here is the call graph for this function:

Here is the caller graph for this function:

orkinTable * orkinTable::MakeTable ( morkEnv ev,
morkTable ioObject 
) [static]

Definition at line 112 of file orkinTable.cpp.

{
  mork_bool isEnv = ev->IsEnv();
  MORK_ASSERT(isEnv);
  if ( isEnv )
  {
    morkHandleFace* face = ev->NewHandle(sizeof(orkinTable));
    if ( face )
      return new(face) orkinTable(ev, face, ioObject);
    else
      ev->OutOfMemoryError();
  }
    
  return (orkinTable*) 0;
}

Here is the call graph for this function:

void morkNode::MarkClosing ( ) [inline, inherited]

Definition at line 255 of file morkNode.h.

void morkNode::MarkDead ( ) [inline, inherited]

Definition at line 256 of file morkNode.h.

void morkNode::MarkShut ( ) [inline, inherited]

Definition at line 254 of file morkNode.h.

mdb_err orkinTable::MoveOid ( nsIMdbEnv ev,
const mdbOid inOid,
mdb_pos  inHintFromPos,
mdb_pos  inToPos,
mdb_pos outActualPos 
) [virtual]

Implements nsIMdbTable.

Definition at line 1086 of file orkinTable.cpp.

{
  mdb_err outErr = 0;
  mdb_pos actualPos = -1; // meaning it was never found in table
  morkEnv* ev = this->CanUseTable(mev, /*inMutable*/ morkBool_kFalse, &outErr);
  if ( ev )
  {
    morkTable* table = (morkTable*) mHandle_Object;
    morkStore* store = table->mTable_Store;
    if ( inOid && store )
    {
      morkRow* row = store->GetRow(ev, inOid);
      if ( row )
        actualPos = table->MoveRow(ev, row, inHintFromPos, inToPos);
    }
    else
      ev->NilPointerError();

    outErr = ev->AsErr();
  }
  if ( outActualPos )
    *outActualPos = actualPos;
  return outErr;
}

Here is the call graph for this function:

mdb_err orkinTable::MoveRow ( nsIMdbEnv ev,
nsIMdbRow ioRow,
mdb_pos  inHintFromPos,
mdb_pos  inToPos,
mdb_pos outActualPos 
) [virtual]

Implements nsIMdbTable.

Definition at line 1117 of file orkinTable.cpp.

{
  mdb_pos actualPos = -1; // meaning it was never found in table
  mdb_err outErr = 0;
  morkEnv* ev = this->CanUseTable(mev, /*inMutable*/ morkBool_kFalse, &outErr);
  if ( ev )
  {
    morkRowObject *rowObj = (morkRowObject *) ioRow;
    morkRow* row = rowObj->mRowObject_Row;
    morkTable* table = (morkTable*) mHandle_Object;
    actualPos = table->MoveRow(ev, row, inHintFromPos, inToPos);
    outErr = ev->AsErr();
  }
  if ( outActualPos )
    *outActualPos = actualPos;
  return outErr;
}

Here is the call graph for this function:

void morkHandle::NewBadMagicHandleError ( morkEnv ev,
mork_magic  inMagic 
) const [inherited]

Definition at line 170 of file morkHandle.cpp.

{
  MORK_USED_1(inMagic);
  ev->NewError("wrong mHandle_Magic");
}

Here is the call graph for this function:

Here is the caller graph for this function:

void morkHandle::NewDownHandleError ( morkEnv ev) const [inherited]

Definition at line 176 of file morkHandle.cpp.

{
  if ( this->IsHandle() )
  {
    if ( this->GoodHandleTag() )
    {
      if ( this->IsOpenNode() )
        ev->NewError("unknown down morkHandle error");
      else
        this->NonOpenNodeError(ev);
    }
    else
      ev->NewError("wrong morkHandle tag");
  }
  else
    ev->NewError("non morkHandle");
}

Here is the call graph for this function:

Here is the caller graph for this function:

mdb_err orkinTable::NewRow ( nsIMdbEnv ev,
mdbOid ioOid,
nsIMdbRow **  acqRow 
) [virtual]

Implements nsIMdbTable.

Definition at line 755 of file orkinTable.cpp.

{
  mdb_err outErr = 0;
  nsIMdbRow* outRow = 0;
  morkEnv* ev = this->CanUseTable(mev, /*inMutable*/ morkBool_kFalse, &outErr);
  if ( ev )
  {
    morkTable* table = (morkTable*) mHandle_Object;
    morkStore* store = table->mTable_Store;
    if ( ioOid && store )
    {
      morkRow* row = 0;
      if ( ioOid->mOid_Id == morkRow_kMinusOneRid )
        row = store->NewRow(ev, ioOid->mOid_Scope);
      else
        row = store->NewRowWithOid(ev, ioOid);
        
      if ( row && table->AddRow(ev, row) )
        outRow = row->AcquireRowHandle(ev, store);
    }
    else
      ev->NilPointerError();
      
    outErr = ev->AsErr();
  }
  if ( acqRow )
    *acqRow = outRow;
  return outErr;
}

Here is the call graph for this function:

void morkHandle::NilFactoryError ( morkEnv ev) const [inherited]

Definition at line 150 of file morkHandle.cpp.

{
  ev->NewError("nil mHandle_Factory");
}

Here is the call graph for this function:

Here is the caller graph for this function:

void morkHandle::NilHandleObjectError ( morkEnv ev) const [inherited]

Definition at line 155 of file morkHandle.cpp.

{
  ev->NewError("nil mHandle_Object");
}

Here is the call graph for this function:

Here is the caller graph for this function:

void morkNode::NilHeapError ( morkEnv ev) const [inherited]

Definition at line 354 of file morkNode.cpp.

{
  ev->NewError("nil mNode_Heap");
}

Here is the caller graph for this function:

mork_usage morkNode::NodeUsage ( ) const [inline, inherited]

Definition at line 231 of file morkNode.h.

{ return mNode_Usage; }
void morkNode::NonMutableNodeError ( morkEnv ev) const [inherited]

Definition at line 348 of file morkNode.cpp.

{
  ev->NewError("non-mutable-morkNode");
}

Here is the caller graph for this function:

void morkNode::NonNodeError ( morkEnv ev) const [inherited]

Definition at line 336 of file morkNode.cpp.

{
  ev->NewError("non-morkNode");
}
void morkHandle::NonNodeObjectError ( morkEnv ev) const [inherited]

Definition at line 160 of file morkHandle.cpp.

{
  ev->NewError("non-node mHandle_Object");
}

Here is the call graph for this function:

Here is the caller graph for this function:

void morkNode::NonOpenNodeError ( morkEnv ev) const [inherited]

Definition at line 342 of file morkNode.cpp.

{
  ev->NewError("non-open-morkNode");
}

Here is the caller graph for this function:

void morkHandle::NonOpenObjectError ( morkEnv ev) const [inherited]

Definition at line 165 of file morkHandle.cpp.

{
  ev->NewError("non-open mHandle_Object");
}

Here is the call graph for this function:

Here is the caller graph for this function:

mdb_err orkinTable::OidToPos ( nsIMdbEnv ev,
const mdbOid inOid,
mdb_pos outPos 
) [virtual]

Implements nsIMdbTable.

Definition at line 628 of file orkinTable.cpp.

{
  mdb_err outErr = 0;
  morkEnv* ev = this->CanUseTable(mev, /*inMutable*/ morkBool_kFalse, &outErr);
  if ( ev )
  {
    mork_pos pos = ((morkTable*) mHandle_Object)->ArrayHasOid(ev, inOid);
    if ( outPos )
      *outPos = pos;
    outErr = ev->AsErr();
  }
  return outErr;
}

Here is the call graph for this function:

void* orkinTable::operator new ( size_t  inSize,
morkPool ioPool,
morkZone ioZone,
morkEnv ev 
) [inline, protected]

Reimplemented from morkHandle.

Definition at line 91 of file orkinTable.h.

  { return ioPool.NewHandle(ev, inSize, &ioZone); }
void* orkinTable::operator new ( size_t  inSize,
morkPool ioPool,
morkEnv ev 
) [inline, protected]

Reimplemented from morkHandle.

Definition at line 94 of file orkinTable.h.

  { return ioPool.NewHandle(ev, inSize, (morkZone*) 0); }
void* orkinTable::operator new ( size_t  inSize,
morkHandleFace *  ioFace 
) [inline, protected]

Reimplemented from morkHandle.

Definition at line 97 of file orkinTable.h.

  { MORK_USED_1(inSize); return ioFace; }
void* morkNode::operator new ( size_t  inSize,
nsIMdbHeap ioHeap,
morkEnv ev 
) [inline, inherited]

Reimplemented in morkTable, morkFactory, morkPool, and morkSorting.

Definition at line 159 of file morkNode.h.

  { return morkNode::MakeNew(inSize, ioHeap, ev); }

Here is the call graph for this function:

orkinTable& orkinTable::operator= ( const orkinTable other) [private]
mdb_err orkinTable::PosToOid ( nsIMdbEnv ev,
mdb_pos  inRowPos,
mdbOid outOid 
) [virtual]

Implements nsIMdbTable.

Definition at line 602 of file orkinTable.cpp.

{
  mdb_err outErr = 0;
  mdbOid roid;
  roid.mOid_Scope = 0;
  roid.mOid_Id = (mork_id) -1;
  
  morkEnv* ev = this->CanUseTable(mev, /*inMutable*/ morkBool_kFalse, &outErr);
  if ( ev )
  {
    morkTable* table = (morkTable*) mHandle_Object;
    morkRow* row = table->SafeRowAt(ev, inRowPos);
    if ( row )
      roid = row->mRow_Oid;
    
    outErr = ev->AsErr();
  }
  if ( outOid )
    *outOid = roid;
  return outErr;
}

Here is the call graph for this function:

mdb_err orkinTable::PosToRow ( nsIMdbEnv ev,
mdb_pos  inRowPos,
nsIMdbRow **  acqRow 
) [virtual]

Implements nsIMdbTable.

Definition at line 646 of file orkinTable.cpp.

{
  mdb_err outErr = 0;
  nsIMdbRow* outRow = 0;
  morkEnv* ev = this->CanUseTable(mev, /*inMutable*/ morkBool_kFalse, &outErr);
  if ( ev )
  {
    morkTable* table = (morkTable*) mHandle_Object;
    morkStore* store = table->mTable_Store;
    morkRow* row = table->SafeRowAt(ev, inRowPos);
    if ( row && store )
      outRow = row->AcquireRowHandle(ev, store);
      
    outErr = ev->AsErr();
  }
  if ( acqRow )
    *acqRow = outRow;
  return outErr;
}

Here is the call graph for this function:

mdb_err orkinTable::QueryIndexOnSort ( nsIMdbEnv ev,
mdb_column  inColumn,
mdb_bool outIndexOnSort 
) [virtual]

Implements nsIMdbTable.

Definition at line 1227 of file orkinTable.cpp.

{
  MORK_USED_1(inColumn);
  mdb_bool indexOnSort = morkBool_kFalse;
  mdb_err outErr = 0;
  morkEnv* ev = this->CanUseTable(mev, /*inMutable*/ morkBool_kFalse, &outErr);
  if ( ev )
  {
      
    outErr = ev->AsErr();
  }
  if ( outIndexOnSort )
    *outIndexOnSort = indexOnSort;
  return outErr;
}

Here is the call graph for this function:

void morkNode::RefsOverflowWarning ( morkEnv ev) const [inherited]

Definition at line 360 of file morkNode.cpp.

{
  ev->NewWarning("mNode_Refs overflow");
}

Here is the caller graph for this function:

void morkNode::RefsUnderflowWarning ( morkEnv ev) const [inherited]

Definition at line 372 of file morkNode.cpp.

{
  ev->NewWarning("mNode_Refs underflow");
}

Here is the caller graph for this function:

void morkNode::RefsUnderUsesWarning ( morkEnv ev) const [inherited]

Definition at line 330 of file morkNode.cpp.

{
  ev->NewError("mNode_Refs < mNode_Uses");
}

Here is the call graph for this function:

Here is the caller graph for this function:

mdb_err orkinTable::RowToPos ( nsIMdbEnv ev,
nsIMdbRow ioRow,
mdb_pos outPos 
) [virtual]

Implements nsIMdbTable.

Definition at line 670 of file orkinTable.cpp.

{
  mdb_err outErr = 0;
  mork_pos pos = -1;
  morkEnv* ev = this->CanUseTable(mev, /*inMutable*/ morkBool_kFalse, &outErr);
  if ( ev )
  {
    morkRow* row = (morkRow*) ioRow;
    morkTable* table = (morkTable*) mHandle_Object;
    pos = table->ArrayHasOid(ev, &row->mRow_Oid);
    outErr = ev->AsErr();
  }
  if ( outPos )
    *outPos = pos;
  return outErr;
}

Here is the call graph for this function:

mdb_err orkinTable::SearchColumnsHint ( nsIMdbEnv ev,
const mdbColumnSet inColumnSet 
) [virtual]

Implements nsIMdbTable.

Definition at line 915 of file orkinTable.cpp.

{
  MORK_USED_1(inColumnSet);
  mdb_err outErr = 0;
  morkEnv* ev = this->CanUseTable(mev, /*inMutable*/ morkBool_kFalse, &outErr);
  if ( ev )
  {
    // ev->StubMethodOnlyError(); // legal to do nothing
    outErr = ev->AsErr();
  }
  return outErr;
}

Here is the call graph for this function:

void morkNode::SetAsleep ( ) [inline, inherited]

Definition at line 138 of file morkNode.h.

void morkNode::SetFrozen ( ) [inline, inherited]

Definition at line 136 of file morkNode.h.

void morkNode::SetMutable ( ) [inline, inherited]

Definition at line 137 of file morkNode.h.

void morkNode::SetNodeClean ( ) [inline, inherited]

Definition at line 144 of file morkNode.h.

Here is the caller graph for this function:

void morkNode::SetNodeDirty ( ) [inline, inherited]

Definition at line 145 of file morkNode.h.

Here is the caller graph for this function:

mdb_err orkinTable::SetSearchSorting ( nsIMdbEnv ev,
mdb_column  inColumn,
nsIMdbSorting ioSorting 
) [virtual]

Implements nsIMdbTable.

Definition at line 1036 of file orkinTable.cpp.

{
  MORK_USED_1(inColumn);
  mdb_err outErr = 0;
  morkEnv* ev = this->CanUseTable(mev, /*inMutable*/ morkBool_kFalse, &outErr);
  if ( ev )
  {
    if ( ioSorting )
    {
      ev->StubMethodOnlyError();
    }
    else
      ev->NilPointerError();
      
    outErr = ev->AsErr();
  }
  return outErr;
}

Here is the call graph for this function:

mdb_err orkinTable::SetTableBeVerbose ( nsIMdbEnv ev,
mdb_bool  inBeVerbose 
) [virtual]

Implements nsIMdbTable.

Definition at line 438 of file orkinTable.cpp.

{
  mdb_err outErr = 0;
  morkEnv* ev = this->CanUseTable(mev, /*inMutable*/ morkBool_kFalse, &outErr);
  if ( ev )
  {
    morkTable* table = (morkTable*) mHandle_Object;
    if ( inBeVerbose )
      table->SetTableVerbose();
    else
       table->ClearTableVerbose();
   
    outErr = ev->AsErr();
  }
  return outErr;
}

Here is the call graph for this function:

mdb_err orkinTable::SetTablePriority ( nsIMdbEnv ev,
mdb_priority  inPrio 
) [virtual]

Implements nsIMdbTable.

Definition at line 381 of file orkinTable.cpp.

{
  mdb_err outErr = 0;
  morkEnv* ev = this->CanUseTable(mev, /*inMutable*/ morkBool_kFalse, &outErr);
  if ( ev )
  {
    morkTable* table = (morkTable*) mHandle_Object;
    if ( inPrio > morkPriority_kMax )
      inPrio = morkPriority_kMax;
      
    table->mTable_Priority = inPrio;
    outErr = ev->AsErr();
  }
  return outErr;
}

Here is the call graph for this function:

static void morkHandle::SlotStrongHandle ( morkHandle me,
morkEnv ev,
morkHandle **  ioSlot 
) [inline, static, inherited]

Definition at line 169 of file morkHandle.h.

  { morkNode::SlotStrongNode((morkNode*) me, ev, (morkNode**) ioSlot); }

Here is the call graph for this function:

void morkNode::SlotStrongNode ( morkNode me,
morkEnv ev,
morkNode **  ioSlot 
) [static, inherited]

Definition at line 466 of file morkNode.cpp.

{
  morkNode* node = *ioSlot;
  if ( me != node )
  {
    if ( node )
    {
      // what if this nulls out the ev and causes asserts?
      // can we move this after the CutStrongRef()?
      *ioSlot = 0;
      node->CutStrongRef(ev);
    }
    if ( me && me->AddStrongRef(ev) )
      *ioSlot = me;
  }
}

Here is the call graph for this function:

Here is the caller graph for this function:

static void morkHandle::SlotWeakHandle ( morkHandle me,
morkEnv ev,
morkHandle **  ioSlot 
) [inline, static, inherited]

Definition at line 165 of file morkHandle.h.

  { morkNode::SlotWeakNode((morkNode*) me, ev, (morkNode**) ioSlot); }

Here is the call graph for this function:

Here is the caller graph for this function:

void morkNode::SlotWeakNode ( morkNode me,
morkEnv ev,
morkNode **  ioSlot 
) [static, inherited]

Definition at line 489 of file morkNode.cpp.

{
  morkNode* node = *ioSlot;
  if ( me != node )
  {
    if ( node )
    {
      *ioSlot = 0;
      node->CutWeakRef(ev);
    }
    if ( me && me->AddWeakRef(ev) )
      *ioSlot = me;
  }
}

Here is the call graph for this function:

Here is the caller graph for this function:

mdb_err orkinTable::SortColumnsHint ( nsIMdbEnv ev,
const mdbColumnSet inColumnSet 
) [virtual]

Implements nsIMdbTable.

Definition at line 931 of file orkinTable.cpp.

{
  MORK_USED_1(inColumnSet);
  mdb_err outErr = 0;
  morkEnv* ev = this->CanUseTable(mev, /*inMutable*/ morkBool_kFalse, &outErr);
  if ( ev )
  {
    // ev->StubMethodOnlyError(); // legal to do nothing
    outErr = ev->AsErr();
  }
  return outErr;
}

Here is the call graph for this function:

mdb_err orkinTable::StartBatchChangeHint ( nsIMdbEnv ev,
const void inLabel 
) [virtual]

Implements nsIMdbTable.

Definition at line 947 of file orkinTable.cpp.

{
  MORK_USED_1(inLabel);
  mdb_err outErr = 0;
  morkEnv* ev = this->CanUseTable(mev, /*inMutable*/ morkBool_kFalse, &outErr);
  if ( ev )
  {
    // ev->StubMethodOnlyError(); // legal to do nothing
    outErr = ev->AsErr();
  }
  return outErr;
}

Here is the call graph for this function:

mork_uses morkNode::StrongRefsOnly ( ) const [inline, inherited]

Definition at line 219 of file morkNode.h.

{ return mNode_Uses; }

Here is the caller graph for this function:

void morkNode::UsesOverflowWarning ( morkEnv ev) const [inherited]

Definition at line 366 of file morkNode.cpp.

{
  ev->NewWarning("mNode_Uses overflow");
}
void morkNode::UsesUnderflowWarning ( morkEnv ev) const [inherited]

Definition at line 378 of file morkNode.cpp.

{
  ev->NewWarning("mNode_Uses underflow");
}

Here is the caller graph for this function:

mork_refs morkNode::WeakRefsOnly ( ) const [inline, inherited]

Definition at line 220 of file morkNode.h.

{ return (mork_refs) ( mNode_Refs - mNode_Uses ); }

Here is the caller graph for this function:

void morkNode::ZapOld ( morkEnv ev,
nsIMdbHeap ioHeap 
) [inherited]

Definition at line 193 of file morkNode.cpp.

{
  if ( this )
  {
    if ( this->IsNode() )
    {
      mork_usage usage = mNode_Usage; // mNode_Usage before ~morkNode
      this->morkNode::~morkNode(); // first call polymorphic destructor
      if ( ioHeap ) // was this node heap allocated?
        ioHeap->Free(ev->AsMdbEnv(), this);
      else if ( usage == morkUsage_kPool ) // mNode_Usage before ~morkNode
      {
        morkHandle* h = (morkHandle*) this;
        if ( h->IsHandle() && h->GoodHandleTag() )
        {
          if ( h->mHandle_Face )
          {
            if (ev->mEnv_HandlePool)
              ev->mEnv_HandlePool->ZapHandle(ev, h->mHandle_Face);
            else if (h->mHandle_Env && h->mHandle_Env->mEnv_HandlePool)
              h->mHandle_Env->mEnv_HandlePool->ZapHandle(ev, h->mHandle_Face);
          }
          else
            ev->NilPointerError();
        }
      }
    }
    else
      this->NonNodeError(ev);
  }
  else
    ev->NilPointerError();
}

Here is the call graph for this function:

Here is the caller graph for this function:


Friends And Related Function Documentation

friend class morkHandleFrame [friend, inherited]

Reimplemented from morkNode.

Definition at line 109 of file morkHandle.h.


Member Data Documentation

Definition at line 87 of file morkHandle.h.

morkHandleFace* morkHandle::mHandle_Face [inherited]

Definition at line 88 of file morkHandle.h.

Definition at line 90 of file morkHandle.h.

Definition at line 89 of file morkHandle.h.

Definition at line 86 of file morkHandle.h.

Definition at line 122 of file morkNode.h.

Definition at line 119 of file morkNode.h.

Definition at line 120 of file morkNode.h.

Definition at line 117 of file morkNode.h.

Definition at line 125 of file morkNode.h.

Definition at line 124 of file morkNode.h.

Definition at line 128 of file morkNode.h.

Definition at line 123 of file morkNode.h.

Definition at line 127 of file morkNode.h.


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