AFF --- A container for numbers (array) by Friederich and Forbriger.

◆ SHeap() [2/2]

template<typename T >
aff::util::SHeap< T >::SHeap ( T *  pointer,
const Tsize size 
)
inline

Take memory reference from elsewhere.

create counted reference object from external memory

Definition at line 97 of file sharedheap_def.h.

98  : Mheap(pointer), Msize(size), Mnref(1), Mextern(true) { }
bool Mextern
true if memory allocation is handled elsewhere
Definition: sharedheap.h:115
Tsize Msize
size (number of elements) of array
Definition: sharedheap.h:113
T * Mheap
shared raw array on heap
Definition: sharedheap.h:112
Tsize Mnref
number of referencing instances
Definition: sharedheap.h:114