ScummVM API documentation
dgHeapBase< OBJECT, KEY > Class Template Reference
Inheritance diagram for dgHeapBase< OBJECT, KEY >:
dgDownHeap< OBJECT, KEY > dgUpHeap< OBJECT, KEY >

Classes

struct  RECORD
 

Public Member Functions

void operator delete (void *const ptr, dgMemoryAllocator *const allocator)
 
void operator delete[] (void *const ptr, dgMemoryAllocator *const allocator)
 
void * operator new (size_t size, dgMemoryAllocator *const allocator)
 
void * operator new[] (size_t size, dgMemoryAllocator *const allocator)
 
void * operator new (size_t size)
 
void * operator new[] (size_t size)
 
void operator delete (void *const ptr)
 
void operator delete[] (void *const ptr)
 
void Flush ()
 
KEY MaxValue () const
 
KEY Value (dgInt32 i=0) const
 
dgInt32 GetCount () const
 
dgInt32 GetMaxCount () const
 
const OBJECT & operator[] (dgInt32 i) const
 
OBJECT & operator[] (dgInt32 i)
 
dgInt32 Find (OBJECT &obj)
 
dgInt32 Find (KEY key)
 

Public Attributes

dgInt32 m_curCount
 
dgInt32 m_maxCount
 
dgMemoryAllocatorm_allocator
 
RECORDm_pool
 

Protected Member Functions

 dgHeapBase (dgInt32 maxElements, dgMemoryAllocator *const allocator)
 
 dgHeapBase (const void *const buffer, dgInt32 sizeInBytes)
 

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