blitz Version 0.9
Public Types | Public Member Functions | Protected Member Functions | Protected Attributes | Private Member Functions | Private Attributes | Static Private Attributes
MemoryBlockReference< P_type > Class Template Reference

#include <memblock.h>

List of all members.

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)
void blockRemoveReference ()
 ~MemoryBlockReference ()
int numReferences () const

Protected Member Functions

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 operator= (const MemoryBlockReference< T_type > &)

Private Attributes

MemoryBlock< T_type > * block_

Static Private Attributes

static NullMemoryBlock< T_typenullBlock_

template<typename P_type>
class MemoryBlockReference< P_type >


Member Typedef Documentation

template<typename P_type>
typedef P_type MemoryBlockReference< P_type >::T_type

Constructor & Destructor Documentation

template<typename P_type>
MemoryBlockReference< P_type >::MemoryBlockReference ( ) [inline]
template<typename P_type>
MemoryBlockReference< P_type >::MemoryBlockReference ( MemoryBlockReference< T_type > &  ref,
size_t  offset = 0 
) [inline]
template<typename P_type>
MemoryBlockReference< P_type >::MemoryBlockReference ( size_t  length,
T_type data,
preexistingMemoryPolicy  deletionPolicy 
) [inline]
template<typename P_type>
MemoryBlockReference< P_type >::MemoryBlockReference ( size_t  items) [inline, explicit]
template<typename P_type>
MemoryBlockReference< P_type >::~MemoryBlockReference ( ) [inline]

Member Function Documentation

template<typename P_type>
void MemoryBlockReference< P_type >::blockRemoveReference ( ) [inline]
template<typename P_type>
void MemoryBlockReference< P_type >::changeBlock ( MemoryBlockReference< T_type > &  ref,
size_t  offset = 0 
) [inline, protected]
template<typename P_type>
void MemoryBlockReference< P_type >::changeToNullBlock ( ) [inline, protected]
template<typename P_type>
void MemoryBlockReference< P_type >::newBlock ( size_t  items) [inline, protected]
template<typename P_type>
int MemoryBlockReference< P_type >::numReferences ( ) const [inline]
template<typename P_type>
void MemoryBlockReference< P_type >::operator= ( const MemoryBlockReference< T_type > &  ) [inline, private]

Member Data Documentation

template<typename P_type>
MemoryBlock<T_type>* MemoryBlockReference< P_type >::block_ [private]
template<typename P_type>
T_type* restrict MemoryBlockReference< P_type >::data_ [protected]
template<typename P_type>
NullMemoryBlock<T_type> MemoryBlockReference< P_type >::nullBlock_ [static, private]

The documentation for this class was generated from the following file:
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends Defines