Newton Dynamics  4.00
dHeapBase< OBJECT, KEY > Class Template Reference
Inheritance diagram for dHeapBase< OBJECT, KEY >:
dDownHeap< OBJECT, KEY > dUpHeap< OBJECT, KEY >

Classes

struct  RECORD
 

Public Member Functions

void Flush ()
 
KEY MaxValue () const
 
KEY Value (dInt32 i=0) const
 
dInt32 GetCount () const
 
dInt32 GetMaxCount () const
 
const OBJECT & operator[] (dInt32 i) const
 
dInt32 Find (OBJECT &obj)
 
dInt32 Find (KEY key)
 

Public Attributes

RECORDm_pool
 
dInt32 m_curCount
 
dInt32 m_maxCount
 
bool m_bufferIsOwnned
 

Protected Member Functions

 dHeapBase (dInt32 maxElements)
 
 dHeapBase (const void *const buffer, dInt32 sizeInBytes)