ezEngine  Release 25.03
ezAllocatorWithPolicy< AllocationPolicy, TrackingMode > Class Template Reference

Policy based allocator implementation of the ezAllocator interface. More...

#include <AllocatorWithPolicy.h>

Inheritance diagram for ezAllocatorWithPolicy< AllocationPolicy, TrackingMode >:

Public Member Functions

 ezAllocatorWithPolicy (ezStringView sName, ezAllocator *pParent=nullptr)
 
- Public Member Functions inherited from ezInternal::ezAllocatorMixinReallocate< AllocationPolicy, ezAllocatorTrackingMode::Default, ezHasReallocate< AllocationPolicy, void *(AllocationPolicy::*)(void *, size_t, size_t, size_t)>::value >
 ezAllocatorMixinReallocate (ezStringView sName, ezAllocator *pParent)
 
- Public Member Functions inherited from ezInternal::ezAllocatorImpl< AllocationPolicy, TrackingMode >
 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
 
ezAllocatorGetParent () const
 
- Public Member Functions inherited from ezAllocator
virtual void * Reallocate (void *pPtr, size_t uiCurrentSize, size_t uiNewSize, size_t uiAlign)
 

Additional Inherited Members

- Protected Attributes inherited from ezInternal::ezAllocatorImpl< AllocationPolicy, TrackingMode >
AllocationPolicy m_allocator
 
ezAllocatorId m_Id
 
ezThreadID m_ThreadID
 

Detailed Description

template<typename AllocationPolicy, ezAllocatorTrackingMode TrackingMode = ezAllocatorTrackingMode::Default>
class ezAllocatorWithPolicy< AllocationPolicy, TrackingMode >

Policy based allocator implementation of the ezAllocator interface.

AllocationPolicy defines how the actual memory is allocated.
TrackingFlags defines how stats about allocations are tracked.


The documentation for this class was generated from the following file: