|
STK++ 0.9.13
|
Specialization for dynamic size arrays. More...
#include <STK_MemAllocator.h>
Public Types | |
| typedef TRange< UnknownSize > | AllocatorRange |
Static Public Member Functions | |
| static Type_ * | free (Type_ *p_data, AllocatorRange const &range) |
| shift data pointer and delete allocated memory | |
| static Type_ * | malloc (Type_ *p_data, AllocatorRange const &range) |
| p_data should not point on existing data. | |
| template<int OtherSize> | |
| static Type_ * | realloc (Type_ *p_data, AllocatorRange const &range, TRange< OtherSize > const &I) |
| realloc main pointer and copy existing data. | |
Specialization for dynamic size arrays.
Definition at line 90 of file STK_MemAllocator.h.
| typedef TRange<UnknownSize> STK::hidden::MemHandler< Type_, UnknownSize >::AllocatorRange |
Definition at line 92 of file STK_MemAllocator.h.
|
inlinestatic |
shift data pointer and delete allocated memory
Definition at line 94 of file STK_MemAllocator.h.
References STK::RangeBase< Derived >::begin().
|
inlinestatic |
p_data should not point on existing data.
Just set default value.
Definition at line 106 of file STK_MemAllocator.h.
References STK::RangeBase< Derived >::begin(), and STK::TRange< UnknownSize >::size().
|
inlinestatic |
realloc main pointer and copy existing data.
Definition at line 119 of file STK_MemAllocator.h.
References STK::RangeBase< Derived >::begin(), STK::TRange< UnknownSize >::end(), STK::hidden::MemHandler< Type_, Size_ >::free(), STK::inf(), and STK::hidden::MemHandler< Type_, Size_ >::malloc().