libmoost
moost::guarded_ptr< T >::shared_access Class Reference

Objects of this class represent a shared lock of the guarded_ptr's mutex. More...

#include <guarded_ptr.hpp>

Inheritance diagram for moost::guarded_ptr< T >::shared_access:
Collaboration diagram for moost::guarded_ptr< T >::shared_access:

List of all members.

Public Member Functions

 shared_access (guarded_ptr const &guard)
 ~shared_access ()
const_reference operator* () const
const_pointer operator-> () const

Private Attributes

guarded_ptr const & m_gptr

Detailed Description

template<typename T>
class moost::guarded_ptr< T >::shared_access

Objects of this class represent a shared lock of the guarded_ptr's mutex.

shared_access objects can only be constructed from guarded_ptr objects. They yield const-pointers to the object referenced by the guarded_ptr.

The shared_access object must never outlive the underlying guarded_ptr object.

Definition at line 138 of file guarded_ptr.hpp.


Constructor & Destructor Documentation

template<typename T>
moost::guarded_ptr< T >::shared_access::shared_access ( guarded_ptr const &  guard) [inline]

Definition at line 141 of file guarded_ptr.hpp.

template<typename T>
moost::guarded_ptr< T >::shared_access::~shared_access ( ) [inline]

Definition at line 147 of file guarded_ptr.hpp.


Member Function Documentation

template<typename T>
const_reference moost::guarded_ptr< T >::shared_access::operator* ( ) const [inline]

Definition at line 152 of file guarded_ptr.hpp.

template<typename T>
const_pointer moost::guarded_ptr< T >::shared_access::operator-> ( ) const [inline]

Definition at line 156 of file guarded_ptr.hpp.


Member Data Documentation

template<typename T>
guarded_ptr const& moost::guarded_ptr< T >::shared_access::m_gptr [private]

Definition at line 162 of file guarded_ptr.hpp.


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