![]() |
ezEngine
Release 25.03
|
Policy based allocator implementation of the ezAllocator interface. More...
#include <AllocatorWithPolicy.h>
Public Member Functions | |
ezAllocatorWithPolicy (ezStringView sName, ezAllocator *pParent=nullptr) | |
![]() | |
ezAllocatorMixinReallocate (ezStringView sName, ezAllocator *pParent) | |
![]() | |
ezAllocatorImpl (ezStringView sName, ezAllocator *pParent) | |
virtual void * | Allocate (size_t uiSize, size_t uiAlign, ezMemoryUtils::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. More... | |
virtual ezAllocatorId | GetId () const override |
virtual Stats | GetStats () const override |
ezAllocator * | GetParent () const |
![]() | |
virtual void * | Reallocate (void *pPtr, size_t uiCurrentSize, size_t uiNewSize, size_t uiAlign) |
Additional Inherited Members | |
![]() | |
AllocationPolicy | m_allocator |
ezAllocatorId | m_Id |
ezThreadID | m_ThreadID |
Policy based allocator implementation of the ezAllocator interface.
AllocationPolicy defines how the actual memory is allocated.
TrackingFlags defines how stats about allocations are tracked.