libmoost
|
Objects of this class represent an exclusive lock of the guarded_ptr's mutex. More...
#include <guarded_ptr.hpp>
Public Member Functions | |
exclusive_access (guarded_ptr &guard) | |
~exclusive_access () | |
reference | operator* () |
const_reference | operator* () const |
pointer | operator-> () |
const_pointer | operator-> () const |
Private Attributes | |
guarded_ptr & | m_gptr |
Objects of this class represent an exclusive lock of the guarded_ptr's mutex.
exclusive_access objects can only be constructed from guarded_ptr objects. They yield pointers to the object referenced by the guarded_ptr.
The exclusive_access object must never outlive the underlying guarded_ptr object.
Definition at line 173 of file guarded_ptr.hpp.
moost::guarded_ptr< T >::exclusive_access::exclusive_access | ( | guarded_ptr & | guard | ) | [inline] |
Definition at line 176 of file guarded_ptr.hpp.
moost::guarded_ptr< T >::exclusive_access::~exclusive_access | ( | ) | [inline] |
Definition at line 182 of file guarded_ptr.hpp.
reference moost::guarded_ptr< T >::exclusive_access::operator* | ( | ) | [inline] |
Definition at line 187 of file guarded_ptr.hpp.
const_reference moost::guarded_ptr< T >::exclusive_access::operator* | ( | ) | const [inline] |
Definition at line 191 of file guarded_ptr.hpp.
pointer moost::guarded_ptr< T >::exclusive_access::operator-> | ( | ) | [inline] |
Definition at line 195 of file guarded_ptr.hpp.
const_pointer moost::guarded_ptr< T >::exclusive_access::operator-> | ( | ) | const [inline] |
Definition at line 199 of file guarded_ptr.hpp.
guarded_ptr& moost::guarded_ptr< T >::exclusive_access::m_gptr [private] |
Definition at line 205 of file guarded_ptr.hpp.