XII Release 0.1.0
Loading...
Searching...
No Matches
xiiStackAllocator< TrackingMode > Class Template Reference
Inheritance diagram for xiiStackAllocator< TrackingMode >:
[legend]

Public Member Functions

 xiiStackAllocator (xiiStringView sName, xiiAllocatorBase *pParent)
 
virtual void * Allocate (size_t uiSize, size_t uiAlign, xiiMemoryUtils::DestructorFunction destructorFunc) override
 Interface, do not use this directly, always use the new/delete macros below.
 
virtual void Deallocate (void *pPtr) override
 
void Reset ()
 Resets the allocator freeing all memory.
 
- Public Member Functions inherited from xiiAllocator< xiiMemoryPolicies::xiiStackAllocation, xiiAllocatorTrackingMode::Default >
 xiiAllocator (xiiStringView sName, xiiAllocatorBase *pParent=nullptr)
 
- Public Member Functions inherited from xiiInternal::xiiAllocatorMixinReallocate< xiiMemoryPolicies::xiiStackAllocation, TrackingMode, xiiHasReallocate< xiiMemoryPolicies::xiiStackAllocation, void *(xiiMemoryPolicies::xiiStackAllocation::*)(void *, size_t, size_t, size_t)>::value >
 xiiAllocatorMixinReallocate (xiiStringView sName, xiiAllocatorBase *pParent)
 
- Public Member Functions inherited from xiiInternal::xiiAllocatorImpl< xiiMemoryPolicies::xiiStackAllocation, TrackingMode >
 xiiAllocatorImpl (xiiStringView sName, xiiAllocatorBase *pParent)
 
virtual size_t AllocatedSize (const void *pPtr) override
 Returns the number of bytes allocated at this address.
 
virtual xiiAllocatorId GetId () const override
 
virtual Stats GetStats () const override
 
xiiAllocatorBaseGetParent () const
 
- Public Member Functions inherited from xiiAllocatorBase
virtual void * Reallocate (void *pPtr, size_t uiCurrentSize, size_t uiNewSize, size_t uiAlign)
 

Additional Inherited Members

- Protected Attributes inherited from xiiInternal::xiiAllocatorImpl< xiiMemoryPolicies::xiiStackAllocation, TrackingMode >
xiiMemoryPolicies::xiiStackAllocation m_Allocator
 
xiiAllocatorId m_Id
 
xiiThreadID m_ThreadID
 

Member Function Documentation

◆ Allocate()

template<xiiAllocatorTrackingMode TrackingMode>
void * xiiStackAllocator< TrackingMode >::Allocate ( size_t uiSize,
size_t uiAlign,
xiiMemoryUtils::DestructorFunction destructorFunc )
overridevirtual

Interface, do not use this directly, always use the new/delete macros below.

Reimplemented from xiiInternal::xiiAllocatorImpl< xiiMemoryPolicies::xiiStackAllocation, TrackingMode >.

◆ Deallocate()

template<xiiAllocatorTrackingMode TrackingMode>
void xiiStackAllocator< TrackingMode >::Deallocate ( void * pPtr)
overridevirtual

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