STK++ 0.9.13
|
Helper class allowing to free memory (or not) More...
#include <STK_MemAllocator.h>
Public Types | |
typedef TRange< Size_ > | AllocatorRange |
Static Public Member Functions | |
static Type_ * | free (Type_ *p_data, AllocatorRange const &range) |
do nothing for fixed size allocators ! | |
static Type_ * | malloc (Type_ *p_data, AllocatorRange const &range) |
malloc memory. | |
template<int OtherSize> | |
static Type_ * | realloc (Type_ *p_data, AllocatorRange const &range, TRange< OtherSize > const &I) |
realloc main pointer and copy existing data. | |
Helper class allowing to free memory (or not)
Definition at line 58 of file STK_MemAllocator.h.
typedef TRange<Size_> STK::hidden::MemHandler< Type_, Size_ >::AllocatorRange |
Definition at line 60 of file STK_MemAllocator.h.
|
inlinestatic |
do nothing for fixed size allocators !
Definition at line 62 of file STK_MemAllocator.h.
Referenced by STK::MemAllocator< Type_, Size_ >::forcedFree(), and STK::hidden::MemHandler< Type_, UnknownSize >::realloc().
|
inlinestatic |
malloc memory.
allocate memory is not allocated yet, otherwise do nothing.
Definition at line 66 of file STK_MemAllocator.h.
Referenced by STK::hidden::MemHandler< Type_, UnknownSize >::realloc().
|
inlinestatic |
realloc main pointer and copy existing data.
Definition at line 80 of file STK_MemAllocator.h.