Anp::Lock< T > Class Template Reference

#include <Mutex.h>

List of all members.

Public Member Functions

 Lock (T &obj)
 ~Lock ()

Private Member Functions

 Lock ()
 Lock (const Lock &)
Lockoperator= (const Lock &)
Lockoperator& ()
void * operator new (std::size_t)
void * operator new[] (std::size_t)
void operator delete (void *)
void operator delete[] (void *)

Private Attributes

T & obj_

Detailed Description

template<class T>
class Anp::Lock< T >

Definition at line 21 of file Mutex.h.


Constructor & Destructor Documentation

template<class T>
Anp::Lock< T >::Lock ( T &  obj  )  [inline]

Definition at line 28 of file Mutex.h.

References Anp::Lock< T >::obj_.

00028                    : obj_(obj)
00029       {
00030          obj_.Lock();
00031       }

template<class T>
Anp::Lock< T >::~Lock (  )  [inline]

Definition at line 36 of file Mutex.h.

References Anp::Lock< T >::obj_.

00037       {
00038          obj_.UnLock();
00039       }  

template<class T>
Anp::Lock< T >::Lock (  )  [private]
template<class T>
Anp::Lock< T >::Lock ( const Lock< T > &   )  [private]

Member Function Documentation

template<class T>
void Anp::Lock< T >::operator delete ( void *   )  [private]
template<class T>
void Anp::Lock< T >::operator delete[] ( void *   )  [private]
template<class T>
void* Anp::Lock< T >::operator new ( std::size_t   )  [private]
template<class T>
void* Anp::Lock< T >::operator new[] ( std::size_t   )  [private]
template<class T>
Lock* Anp::Lock< T >::operator& (  )  [private]
template<class T>
Lock& Anp::Lock< T >::operator= ( const Lock< T > &   )  [private]

Member Data Documentation

template<class T>
T& Anp::Lock< T >::obj_ [private]

Definition at line 43 of file Mutex.h.

Referenced by Anp::Lock< T >::Lock(), and Anp::Lock< T >::~Lock().


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

Generated on 15 Jul 2018 for loon by  doxygen 1.6.1