ezEngine  Milestone 7
ezAllocator< AllocationPolicy, TrackingFlags > Class Template Reference

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

#include <Allocator.h>

Inheritance diagram for ezAllocator< AllocationPolicy, TrackingFlags >:

Public Member Functions

 ezAllocator (const char *szName, ezAllocatorBase *pParent=nullptr)
 
- Public Member Functions inherited from ezInternal::ezAllocatorMixinReallocate< AllocationPolicy, TrackingFlags, ezHasReallocate< AllocationPolicy, void *(AllocationPolicy::*)(void *, size_t, size_t, size_t) >::value >
 ezAllocatorMixinReallocate (const char *szName, ezAllocatorBase *pParent)
 
- Public Member Functions inherited from ezInternal::ezAllocatorImpl< AllocationPolicy, TrackingFlags >
 ezAllocatorImpl (const char *szName, ezAllocatorBase *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 *ptr) override
 
virtual size_t AllocatedSize (const void *ptr) override
 
virtual Stats GetStats () const override
 
ezAllocatorBaseGetParent () const
 
- Public Member Functions inherited from ezAllocatorBase
virtual void * Reallocate (void *ptr, size_t uiCurrentSize, size_t uiNewSize, size_t uiAlign)
 

Additional Inherited Members

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

Detailed Description

template<typename AllocationPolicy, ezUInt32 TrackingFlags = ezMemoryTrackingFlags::Default>
class ezAllocator< AllocationPolicy, TrackingFlags >

Policy based allocator implementation of the ezAllocatorBase 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: