Scopira  20080306
scopira::tool::const_area_ptr< T > Class Template Reference

#include <thread_pthreads.h>

Inheritance diagram for scopira::tool::const_area_ptr< T >:
scopira::tool::read_locker_ptr< T > scopira::tool::read_locker_ptr< T >

Public Member Functions

 const_area_ptr (const shared_area< T > &ref)
 
 const_area_ptr (const rw_area< T > &ref)
 
const T * get (void)
 members
 
const T & operator* (void)
 pointer behaviour
 
const T * operator-> (void)
 pointer behaviour
 
void reset (void)
 
 const_area_ptr (const shared_area< T > &ref)
 
 const_area_ptr (const rw_area< T > &ref)
 
const T * get (void)
 members
 
const T & operator* (void)
 pointer behaviour
 
const T * operator-> (void)
 pointer behaviour
 
void reset (void)
 

Protected Member Functions

 const_area_ptr (const volatile T &ref)
 
 const_area_ptr (const volatile T &ref)
 

Protected Attributes

const T * dm_ptr
 

Detailed Description

template<class T>
class scopira::tool::const_area_ptr< T >

This is the basis for all locking pointer contructs. This version simply converts the volatile structure to a non volatile one.

Descendants do an addition lock/unlock operation, useful for concurent programming.

This version provices const access, useful for read_locker_ptr.

Author
Aleksander Demko

Constructor & Destructor Documentation

◆ const_area_ptr() [1/6]

template<class T >
scopira::tool::const_area_ptr< T >::const_area_ptr ( const shared_area< T > &  ref)
inline

Public ctor, for shared_area.

Author
Aleksander Demko

◆ const_area_ptr() [2/6]

template<class T >
scopira::tool::const_area_ptr< T >::const_area_ptr ( const rw_area< T > &  ref)
inline

Public ctor, for rw_area.

Author
Aleksander Demko

◆ const_area_ptr() [3/6]

template<class T >
scopira::tool::const_area_ptr< T >::const_area_ptr ( const volatile T &  ref)
inlineprotected

Inheritance ctor.

Author
Aleksander Demko

◆ const_area_ptr() [4/6]

template<class T >
scopira::tool::const_area_ptr< T >::const_area_ptr ( const shared_area< T > &  ref)
inline

Public ctor, for shared_area.

Author
Aleksander Demko

◆ const_area_ptr() [5/6]

template<class T >
scopira::tool::const_area_ptr< T >::const_area_ptr ( const rw_area< T > &  ref)
inline

Public ctor, for rw_area.

Author
Aleksander Demko

◆ const_area_ptr() [6/6]

template<class T >
scopira::tool::const_area_ptr< T >::const_area_ptr ( const volatile T &  ref)
inlineprotected

Inheritance ctor.

Author
Aleksander Demko

Member Function Documentation

◆ reset() [1/2]

template<class T >
void scopira::tool::const_area_ptr< T >::reset ( void  )
inline

reassigns the pointer. this should be called, perhaps, after getting a notifiction (ie. after a wait() call on the condition)

Author
Aleksander Demko

◆ reset() [2/2]

template<class T >
void scopira::tool::const_area_ptr< T >::reset ( void  )
inline

reassigns the pointer. this should be called, perhaps, after getting a notifiction (ie. after a wait() call on the condition)

Author
Aleksander Demko

The documentation for this class was generated from the following files: