XII Release 0.1.0
Loading...
Searching...
No Matches
xiiMemoryPolicies::xiiStackAllocation Class Reference

This allocation policy works like a stack. You can only "push" and "pop" allocations in the correct order. More...

#include <StackAllocation.h>

Public Types

enum  { Alignment = 16 }
 

Public Member Functions

XII_FORCE_INLINE xiiStackAllocation (xiiAllocatorBase *pParent)
 
XII_FORCE_INLINE void * Allocate (size_t uiSize, size_t uiAlign)
 
XII_FORCE_INLINE void Deallocate (void *pPtr)
 
XII_FORCE_INLINE void Reset ()
 
XII_FORCE_INLINE void FillStats (xiiAllocatorBase::Stats &ref_stats)
 
XII_ALWAYS_INLINE xiiAllocatorBaseGetParent () const
 

Detailed Description

This allocation policy works like a stack. You can only "push" and "pop" allocations in the correct order.

Note
It is also possible to free all allocations at once.
See also
xiiAllocator

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