Newton Dynamics  4.00
ndHeap< dItem, dKey > Class Template Reference
Inheritance diagram for ndHeap< dItem, dKey >:
ndClassAlloc

Classes

struct  dRecord
 

Public Member Functions

 ndHeap (ndInt32 maxElements)
 
 ndHeap (const void *const buffer, ndInt32 sizeInBytes)
 
void Flush ()
 
dKey MaxValue () const
 
dKey Value (ndInt32 i=0) const
 
ndInt32 GetCount () const
 
ndInt32 GetMaxCount () const
 
const dItem & operator[] (ndInt32 i) const
 
ndInt32 Find (dItem &obj)
 
ndInt32 Find (dKey key)
 
void Pop ()
 
void Sort ()
 
void Remove (ndInt32 Index)
 
void Push (dItem &obj, dKey key)
 
bool SanityCheck ()
 
- Public Member Functions inherited from ndClassAlloc
 ndClassAlloc ()
 Empty default constructor.
 
 ~ndClassAlloc ()
 Empty.
 

Protected Attributes

dRecordm_pool
 
ndInt32 m_curCount
 
ndInt32 m_maxCount
 
bool m_bufferIsOwnned
 

Additional Inherited Members

- Static Public Member Functions inherited from ndClassAlloc
D_OPERATOR_NEW_AND_DELETE static D_CORE_API void * Malloc (size_t size)
 Generic allocation for any function subclass from ndClassAlloc.
 
static D_CORE_API void Free (void *const ptr)
 Generic destruction for any function subclass from ndClassAlloc.