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

◆ value_type

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

Constructor & Destructor Documentation

◆ MemoryMapBlock()

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

◆ ~MemoryMapBlock()

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

Member Function Documentation

◆ data() [1/2]

template<class T>
value_type* ltl::ltl::MemoryBlock< T >::data ( )
inlineinherited

◆ data() [2/2]

template<class T>
value_type* ltl::ltl::MemoryBlock< T >::data ( ) const
inlineinherited

◆ addReference()

template<class T>
void ltl::ltl::MemoryBlock< T >::addReference ( )
inlineinherited

◆ removeReference()

template<class T>
void ltl::ltl::MemoryBlock< T >::removeReference ( )
inlineinherited

◆ references()

template<class T>
int ltl::ltl::MemoryBlock< T >::references ( ) const
inlineinherited

◆ describeSelf()

template<class T>
void ltl::ltl::MemoryBlock< T >::describeSelf ( ) const
inlineinherited

Member Data Documentation

◆ data_

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

◆ References_

template<class T>
SynchronizedCounter ltl::ltl::MemoryBlock< T >::References_
protectedinherited