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

Objects of this class represent an exclusive lock of the guarded_ptr's mutex. More...

#include <guarded_ptr.hpp>

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

List of all members.

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_ptrm_gptr

Detailed Description

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

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.


Constructor & Destructor Documentation

template<typename T>
moost::guarded_ptr< T >::exclusive_access::exclusive_access ( guarded_ptr guard) [inline]

Definition at line 176 of file guarded_ptr.hpp.

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

Definition at line 182 of file guarded_ptr.hpp.


Member Function Documentation

template<typename T>
reference moost::guarded_ptr< T >::exclusive_access::operator* ( ) [inline]

Definition at line 187 of file guarded_ptr.hpp.

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

Definition at line 191 of file guarded_ptr.hpp.

template<typename T>
pointer moost::guarded_ptr< T >::exclusive_access::operator-> ( ) [inline]

Definition at line 195 of file guarded_ptr.hpp.

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

Definition at line 199 of file guarded_ptr.hpp.


Member Data Documentation

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

Definition at line 205 of file guarded_ptr.hpp.


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