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

Public Member Functions

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

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.
 
- Protected Attributes inherited from ndHeap< dItem, ndUpHeapCompare< dKey > >
dRecord * m_pool
 
ndInt32 m_curCount
 
ndInt32 m_maxCount
 
bool m_bufferIsOwnned