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

Inherits ltl::ltl::MemoryBlock< T >.

Public Types

typedef T value_type
 

Public Member Functions

 MemoryMapBlock (const int items, const char *filename=NULL)
 
virtual ~MemoryMapBlock ()
 
value_typedata ()
 
value_typedata () const
 
void addReference ()
 
void removeReference ()
 
int references () const
 
void describeSelf () const
 

Protected Attributes

value_typedata_
 
SynchronizedCounter References_
 

Detailed Description

template<class T>
class ltl::ltl::MemoryMapBlock< T >

Provides a reference-counted block of mapped memory. This block may be referred to by multiple array objects. The memory is automatically deallocated when the last referring object is destructed.

Member Typedef Documentation

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

Constructor & Destructor Documentation

template<class T >
ltl::ltl::MemoryMapBlock< T >::MemoryMapBlock ( const int  items,
const char *  filename = NULL 
)
inline
template<class T >
virtual ltl::ltl::MemoryMapBlock< T >::~MemoryMapBlock ( )
inlinevirtual

Member Function Documentation

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

Member Data Documentation

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