Allocator interface. More...
Inherited by DD::Image::BlockAllocator, and DD::Image::HeapAllocator.
Public Member Functions | |
virtual const char * | getName () const =0 |
Return the name for this allocator. | |
virtual const char * | getType () const =0 |
Return the type name for this allocator (e.g. "HeapAllocator") | |
virtual size_t | getRequestedUsage () const =0 |
Returns the sum total requested by the user. | |
virtual size_t | getAllocatorUsage () const |
virtual size_t | getRequestedHighWaterMark () const =0 |
Returns the high watermark for the requested allocations. | |
virtual size_t | getAllocatorHighWaterMark () const |
virtual void | resetHighWaterMark ()=0 |
Resets the high watermark for the allocator. | |
Static Public Member Functions | |
template<typename T > | |
static T * | getAllocator (IAllocator *pAllocator) |
Helper function for returning a concrete allocator type. | |
Allocator interface.
|
inlinevirtual |
Returns the sum total used by the allocator. This can differ from the requested in some allocators, i.e. BlockAllocator
Referenced by DD::Image::Memory::dump_allocatorinfoXML().
|
inlinevirtual |
Returns the high watermark for the allocator. This can differ from the RequestedHighwaterMark in some allocators, i.e. BlockAllocator
Referenced by DD::Image::Memory::dump_allocatorinfoXML().
©2024 The Foundry Visionmongers, Ltd. All Rights Reserved. |