Back to index

lightning-sunbird  0.9+nobinonly
Public Member Functions | Private Member Functions
orkinHeap Class Reference

#include <orkinHeap.h>

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

List of all members.

Public Member Functions

 orkinHeap ()
virtual ~orkinHeap ()
NS_IMETHOD Alloc (nsIMdbEnv *ev, mdb_size inSize, void **outBlock)
NS_IMETHOD Free (nsIMdbEnv *ev, void *inBlock)
NS_IMETHOD HeapAddStrongRef (nsIMdbEnv *ev)
NS_IMETHOD HeapCutStrongRef (nsIMdbEnv *ev)

Private Member Functions

 orkinHeap (const orkinHeap &other)
orkinHeapoperator= (const orkinHeap &other)

Detailed Description

Definition at line 55 of file orkinHeap.h.


Constructor & Destructor Documentation

Definition at line 57 of file orkinErrorHook.cpp.

{
}
orkinHeap::~orkinHeap ( ) [virtual]

Definition at line 62 of file orkinErrorHook.cpp.

{
}
orkinHeap::orkinHeap ( const orkinHeap other) [private]

Member Function Documentation

mdb_err orkinHeap::Alloc ( nsIMdbEnv ev,
mdb_size  inSize,
void **  outBlock 
) [virtual]

Implements nsIMdbHeap.

Definition at line 68 of file orkinErrorHook.cpp.

{
  mdb_err outErr = 0;
  void* block = new char[ inSize ];
  if ( !block )
    outErr = morkEnv_kOutOfMemoryError;
    
  MORK_ASSERT(outBlock);
  if ( outBlock )
    *outBlock = block;
  return outErr;
}
mdb_err orkinHeap::Free ( nsIMdbEnv ev,
void inBlock 
) [virtual]

Implements nsIMdbHeap.

Definition at line 84 of file orkinErrorHook.cpp.

{
  MORK_ASSERT(inBlock);
  if ( inBlock )
    delete [] inBlock;
    
  return 0;
}

Implements nsIMdbHeap.

Definition at line 172 of file orkinHeap.cpp.

{
  MORK_USED_1(ev);
  return 0;
}

Implements nsIMdbHeap.

Definition at line 179 of file orkinHeap.cpp.

{
  MORK_USED_1(ev);
  return 0;
}
orkinHeap& orkinHeap::operator= ( const orkinHeap other) [private]

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