ezEngine Release 26.3
Loading...
Searching...
No Matches
ezAllocatorWithPolicy< AllocationPolicy, TrackingMode > Class Template Reference

Policy-based allocator that combines allocation strategies with tracking modes. 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, TrackingMode, HasReallocate >
 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
 Deallocates memory previously allocated by this allocator.
 
virtual size_t AllocatedSize (const void *pPtr) override
 Returns the number of bytes allocated at this address.
 
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)
 Reallocates memory, potentially moving the data to a new location.
 

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 that combines allocation strategies with tracking modes.

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: