HLIBpro  1.2
Public Member Functions | List of all members
NullMemBlock< T > Class Template Reference

special version of a memory block for NULL pointers

#include <MemBlock.hh>

Inheritance diagram for NullMemBlock< T >:
MemBlock< T >

Public Member Functions

 NullMemBlock ()
 ctor for zero sized block but one reference
 ~NullMemBlock ()
 dtor
- Public Member Functions inherited from MemBlock< T >
 MemBlock ()
 ctor with NULL data and 0 references
 MemBlock (const size_t n)
 ctor for n elements of T and 0 references
 ~MemBlock ()
 dtor removing all data even if references exist !
T * data ()
 return pointer to internal array
const T * data () const
 return const pointer to internal array
void add_ref ()
 add reference to memory block
long del_ref ()
long nreferences ()
 return number of references to memory block