![]() |
XII Release 0.1.0
|
Policy based allocator implementation of the xiiAllocatorBase interface. More...
#include <Allocator.h>
Public Member Functions | |
xiiAllocator (xiiStringView sName, xiiAllocatorBase *pParent=nullptr) | |
![]() | |
xiiAllocatorMixinReallocate (xiiStringView sName, xiiAllocatorBase *pParent) | |
![]() | |
xiiAllocatorImpl (xiiStringView sName, xiiAllocatorBase *pParent) | |
virtual void * | Allocate (size_t uiSize, size_t uiAlign, xiiMemoryUtils::DestructorFunction destructorFunc=nullptr) override |
Interface, do not use this directly, always use the new/delete macros below. | |
virtual void | Deallocate (void *pPtr) override |
virtual size_t | AllocatedSize (const void *pPtr) override |
Returns the number of bytes allocated at this address. | |
virtual xiiAllocatorId | GetId () const override |
virtual Stats | GetStats () const override |
xiiAllocatorBase * | GetParent () const |
![]() | |
virtual void * | Reallocate (void *pPtr, size_t uiCurrentSize, size_t uiNewSize, size_t uiAlign) |
Additional Inherited Members | |
![]() | |
AllocationPolicy | m_Allocator |
xiiAllocatorId | m_Id |
xiiThreadID | m_ThreadID |
Policy based allocator implementation of the xiiAllocatorBase interface.
AllocationPolicy defines how the actual memory is allocated.
TrackingFlags defines how stats about allocations are tracked.