#include <memblock.h>
Public Types | |
typedef P_type | T_type |
Public Member Functions | |
MemoryBlockReference () | |
MemoryBlockReference (MemoryBlockReference< T_type > &ref, size_t offset=0) | |
MemoryBlockReference (size_t length, T_type *data, preexistingMemoryPolicy deletionPolicy) | |
MemoryBlockReference (size_t items) | |
~MemoryBlockReference () | |
Protected Member Functions | |
int | numReferences () const |
bool | lockReferenceCount (bool lockingPolicy) const |
void | changeToNullBlock () |
void | changeBlock (MemoryBlockReference< T_type > &ref, size_t offset=0) |
void | newBlock (size_t items) |
Protected Attributes | |
T_type *restrict | data_ |
Private Member Functions | |
void | blockRemoveReference () |
void | addReference () const |
int | removeReference () const |
void | operator= (const MemoryBlockReference< T_type > &) |
Private Attributes | |
MemoryBlock< T_type > * | block_ |
typedef P_type MemoryBlockReference< P_type >::T_type |
MemoryBlockReference< P_type >::MemoryBlockReference | ( | ) | [inline] |
MemoryBlockReference< P_type >::MemoryBlockReference | ( | MemoryBlockReference< T_type > & | ref, | |
size_t | offset = 0 | |||
) | [inline] |
MemoryBlockReference< P_type >::MemoryBlockReference | ( | size_t | length, | |
T_type * | data, | |||
preexistingMemoryPolicy | deletionPolicy | |||
) | [inline] |
MemoryBlockReference< P_type >::MemoryBlockReference | ( | size_t | items | ) | [inline, explicit] |
MemoryBlockReference< P_type >::~MemoryBlockReference | ( | ) | [inline] |
void MemoryBlockReference< P_type >::addReference | ( | ) | const [inline, private] |
void MemoryBlockReference< P_type >::blockRemoveReference | ( | ) | [inline, private] |
void MemoryBlockReference< P_type >::changeBlock | ( | MemoryBlockReference< T_type > & | ref, | |
size_t | offset = 0 | |||
) | [inline, protected] |
void MemoryBlockReference< P_type >::changeToNullBlock | ( | ) | [inline, protected] |
bool MemoryBlockReference< P_type >::lockReferenceCount | ( | bool | lockingPolicy | ) | const [inline, protected] |
void MemoryBlockReference< P_type >::newBlock | ( | size_t | items | ) | [inline, protected] |
int MemoryBlockReference< P_type >::numReferences | ( | ) | const [inline, protected] |
void MemoryBlockReference< P_type >::operator= | ( | const MemoryBlockReference< T_type > & | ) | [inline, private] |
int MemoryBlockReference< P_type >::removeReference | ( | ) | const [inline, private] |
MemoryBlock<T_type>* MemoryBlockReference< P_type >::block_ [private] |
T_type* restrict MemoryBlockReference< P_type >::data_ [protected] |