HLIBpro
2.2
|
Defines a reference countable memory block.
#include <MemBlock.hh>
Public Types | |
typedef T_value | value_t |
internal value type | |
Public Member Functions | |
MemBlock () | |
ctor with nullptr data and 0 references | |
MemBlock (const size_t n) | |
ctor for n elements of value_t and 0 references | |
MemBlock (const MemBlock &b) | |
copy ctor (copy reference!) | |
MemBlock (MemBlock &&b) | |
move ctor (move ownership) | |
~MemBlock () | |
dtor removing all data even if references exist ! | |
MemBlock & | operator= (const MemBlock &b) |
copy operator (copy reference!) | |
MemBlock & | operator= (MemBlock &&b) |
move ctor (move ownership) | |
value_t * | data () |
return pointer to internal array | |
const value_t * | data () const |
return const pointer to internal array | |