ezEngine  Milestone 7
ezStackAllocator< TrackingFlags > Class Template Reference
Inheritance diagram for ezStackAllocator< TrackingFlags >:

Classes

struct  DestructData
 

Public Member Functions

 ezStackAllocator (const char *szName, ezAllocatorBase *pParent)
 
virtual void * Allocate (size_t uiSize, size_t uiAlign, ezMemoryUtils::DestructorFunction destructorFunc) override
 Interface, do not use this directly, always use the new/delete macros below.
 
virtual void Deallocate (void *ptr) override
 
void Reset ()
 Resets the allocator freeing all memory.
 
- Public Member Functions inherited from ezAllocator< ezMemoryPolicies::ezStackAllocation, TrackingFlags >
 ezAllocator (const char *szName, ezAllocatorBase *pParent=nullptr)
 
- Public Member Functions inherited from ezInternal::ezAllocatorMixinReallocate< ezMemoryPolicies::ezStackAllocation, TrackingFlags, ezHasReallocate< ezMemoryPolicies::ezStackAllocation, void *(ezMemoryPolicies::ezStackAllocation::*)(void *, size_t, size_t, size_t) >::value >
 ezAllocatorMixinReallocate (const char *szName, ezAllocatorBase *pParent)
 
- Public Member Functions inherited from ezInternal::ezAllocatorImpl< ezMemoryPolicies::ezStackAllocation, TrackingFlags >
 ezAllocatorImpl (const char *szName, ezAllocatorBase *pParent)
 
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)
 

Private Attributes

ezMutex m_Mutex
 
ezDynamicArray< DestructDatam_DestructData
 
ezHashTable< void *, ezUInt32 > m_PtrToDestructDataIndexTable
 

Additional Inherited Members

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

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