![]() |
XII Release 0.1.0
|
Base class for all memory allocators. More...
#include <AllocatorBase.h>
Classes | |
struct | Stats |
Public Member Functions | |
virtual void * | Allocate (size_t uiSize, size_t uiAlign, xiiMemoryUtils::DestructorFunction destructorFunc=nullptr)=0 |
Interface, do not use this directly, always use the new/delete macros below. | |
virtual void | Deallocate (void *pPtr)=0 |
virtual void * | Reallocate (void *pPtr, size_t uiCurrentSize, size_t uiNewSize, size_t uiAlign) |
virtual size_t | AllocatedSize (const void *pPtr)=0 |
Returns the number of bytes allocated at this address. | |
virtual xiiAllocatorId | GetId () const =0 |
virtual Stats | GetStats () const =0 |
Base class for all memory allocators.
|
pure virtual |
Interface, do not use this directly, always use the new/delete macros below.
Implemented in xiiInternal::xiiAllocatorImpl< AllocationPolicy, TrackingMode >, xiiInternal::xiiAllocatorImpl< xiiMemoryPolicies::xiiHeapAllocation, TrackingMode >, xiiInternal::xiiAllocatorImpl< xiiMemoryPolicies::xiiStackAllocation, TrackingMode >, xiiStackAllocator< TrackingMode >, xiiStackAllocator< xiiAllocatorTrackingMode::Basics >, xiiStackAllocator< xiiAllocatorTrackingMode::Basics >, and xiiStackAllocator< xiiAllocatorTrackingMode::DoNotTrack >.
|
pure virtual |
Returns the number of bytes allocated at this address.
Implemented in xiiInternal::xiiAllocatorImpl< AllocationPolicy, TrackingMode >, xiiInternal::xiiAllocatorImpl< xiiMemoryPolicies::xiiHeapAllocation, TrackingMode >, and xiiInternal::xiiAllocatorImpl< xiiMemoryPolicies::xiiStackAllocation, TrackingMode >.