libmoost
|
Objects of this class represent a shared lock of the guarded_ptr's mutex. More...
#include <guarded_ptr.hpp>
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 |
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.
moost::guarded_ptr< T >::shared_access::shared_access | ( | guarded_ptr const & | guard | ) | [inline] |
Definition at line 141 of file guarded_ptr.hpp.
moost::guarded_ptr< T >::shared_access::~shared_access | ( | ) | [inline] |
Definition at line 147 of file guarded_ptr.hpp.
const_reference moost::guarded_ptr< T >::shared_access::operator* | ( | ) | const [inline] |
Definition at line 152 of file guarded_ptr.hpp.
const_pointer moost::guarded_ptr< T >::shared_access::operator-> | ( | ) | const [inline] |
Definition at line 156 of file guarded_ptr.hpp.
guarded_ptr const& moost::guarded_ptr< T >::shared_access::m_gptr [private] |
Definition at line 162 of file guarded_ptr.hpp.