![]() |
Plasma Engine
2.0
|
Policy based allocator implementation of the plAllocator interface. More...
#include <AllocatorWithPolicy.h>

Public Member Functions | |
| plAllocatorWithPolicy (plStringView sName, plAllocator *pParent=nullptr) | |
Public Member Functions inherited from plInternal::plAllocatorMixinReallocate< AllocationPolicy, plAllocatorTrackingMode::Default, plHasReallocate< AllocationPolicy, void *(AllocationPolicy::*)(void *, size_t, size_t, size_t)>::value > | |
| plAllocatorMixinReallocate (plStringView sName, plAllocator *pParent) | |
Public Member Functions inherited from plInternal::plAllocatorImpl< AllocationPolicy, TrackingMode > | |
| plAllocatorImpl (plStringView sName, plAllocator *pParent) | |
| virtual void * | Allocate (size_t uiSize, size_t uiAlign, plMemoryUtils::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 plAllocatorId | GetId () const override |
| virtual Stats | GetStats () const override |
| plAllocator * | GetParent () const |
Public Member Functions inherited from plAllocator | |
| virtual void * | Reallocate (void *pPtr, size_t uiCurrentSize, size_t uiNewSize, size_t uiAlign) |
Additional Inherited Members | |
Protected Attributes inherited from plInternal::plAllocatorImpl< AllocationPolicy, TrackingMode > | |
| AllocationPolicy | m_allocator |
| plAllocatorId | m_Id |
| plThreadID | m_ThreadID |
Policy based allocator implementation of the plAllocator interface.
AllocationPolicy defines how the actual memory is allocated.
TrackingFlags defines how stats about allocations are tracked.