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

#include <thread_pthreads.h>

Inheritance diagram for scopira::tool::area_ptr< T >:
scopira::tool::locker_ptr< T > scopira::tool::locker_ptr< T > scopira::tool::write_locker_ptr< T > scopira::tool::write_locker_ptr< T > scopira::tool::event_ptr< T > scopira::tool::event_ptr< T > scopira::tool::event_ptr< T > scopira::tool::event_ptr< T >

Public Member Functions

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

Protected Member Functions

 area_ptr (const volatile T &ref)
 
 area_ptr (const volatile T &ref)
 

Protected Attributes

T * dm_ptr
 

Detailed Description

template<class T>
class scopira::tool::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 you'd use if you were sure the are you wanted was already under a locking_ptr scope.

Author
Aleksander Demko

Constructor & Destructor Documentation

◆ area_ptr() [1/6]

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

Public ctor, for shared_area.

Author
Aleksander Demko

◆ area_ptr() [2/6]

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

Public ctor, for rw_area.

Author
Aleksander Demko

◆ area_ptr() [3/6]

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

Inheritance ctor.

Author
Aleksander Demko

◆ area_ptr() [4/6]

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

Public ctor, for shared_area.

Author
Aleksander Demko

◆ area_ptr() [5/6]

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

Public ctor, for rw_area.

Author
Aleksander Demko

◆ area_ptr() [6/6]

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

Inheritance ctor.

Author
Aleksander Demko

Member Function Documentation

◆ reset() [1/2]

template<class T >
void scopira::tool::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::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: