LTL  2.0.x
Public Types | Public Member Functions | Protected Attributes | List of all members
ltl::ltl::MemoryBlock< T > Class Template Reference

Inherited by ltl::ltl::MemoryMapBlock< T >.

Public Types

typedef T value_type
 

Public Member Functions

 MemoryBlock ()
 
 MemoryBlock (const int items)
 
 MemoryBlock (value_type *data)
 Create MemoryBlock from pre-allocated memory. More...
 
virtual ~MemoryBlock ()
 
value_typedata ()
 
value_typedata () const
 
void addReference ()
 
void removeReference ()
 
int references () const
 
void describeSelf () const
 

Protected Attributes

value_typedata_
 
SynchronizedCounter References_
 

Member Typedef Documentation

template<class T>
typedef T ltl::ltl::MemoryBlock< T >::value_type

Constructor & Destructor Documentation

template<class T>
ltl::ltl::MemoryBlock< T >::MemoryBlock ( )
inline
template<class T>
ltl::ltl::MemoryBlock< T >::MemoryBlock ( const int  items)
inline
template<class T>
ltl::ltl::MemoryBlock< T >::MemoryBlock ( value_type data)
inline

Create MemoryBlock from pre-allocated memory.

template<class T>
virtual ltl::ltl::MemoryBlock< T >::~MemoryBlock ( )
inlinevirtual

Member Function Documentation

template<class T>
value_type* ltl::ltl::MemoryBlock< T >::data ( )
inline
template<class T>
value_type* ltl::ltl::MemoryBlock< T >::data ( ) const
inline
template<class T>
void ltl::ltl::MemoryBlock< T >::addReference ( )
inline
template<class T>
void ltl::ltl::MemoryBlock< T >::removeReference ( )
inline
template<class T>
int ltl::ltl::MemoryBlock< T >::references ( ) const
inline
template<class T>
void ltl::ltl::MemoryBlock< T >::describeSelf ( ) const
inline

Member Data Documentation

template<class T>
value_type* ltl::ltl::MemoryBlock< T >::data_
protected
template<class T>
SynchronizedCounter ltl::ltl::MemoryBlock< T >::References_
protected