DD::Image::HeapAllocator Class Reference
Inherits DD::Image::IAllocator.
List of all members.
|
Public Member Functions |
|
| HeapAllocator (const char *allocatorName) |
|
void * | allocate (size_t size) |
|
template<typename T > |
| T * | allocate (size_t numItems) |
|
template<typename T > |
| T * | New () |
|
void | deallocate (void *memory) |
|
template<typename T > |
| void | Delete (T *memory) |
|
virtual const char * | getName () const |
|
virtual const char * | getType () const |
|
virtual size_t | getRequestedUsage () const |
|
virtual size_t | getRequestedHighWaterMark () const |
|
virtual void | resetHighWaterMark () |
Detailed Description
Heap Allocator
This is a very simple, thread-safe Heap allocator which calls through to DD::Image::Memory and tracks how much memory its using