NLMISC::CRWSynchronized< T >::CReadAccessor Class Reference

#include <reader_writer.h>

template<class T>
class NLMISC::CRWSynchronized< T >::CReadAccessor


Public Member Functions

 CReadAccessor (CRWSynchronized< T > *cs)
const T & value ()
 ~CReadAccessor ()

Private Attributes

CRWSynchronized< T > * _RWSynchronized

Constructor & Destructor Documentation

template<class T>
NLMISC::CRWSynchronized< T >::CReadAccessor::CReadAccessor CRWSynchronized< T > *  cs  )  [inline]
 

Definition at line 104 of file reader_writer.h.

References NLMISC::CRWSynchronized< T >::CReadAccessor::_RWSynchronized.

00105                 {
00106                         _RWSynchronized = cs;
00107                         const_cast<CReaderWriter&>(_RWSynchronized->_RWSync).enterReader();
00108                 }

template<class T>
NLMISC::CRWSynchronized< T >::CReadAccessor::~CReadAccessor  )  [inline]
 

Definition at line 110 of file reader_writer.h.

References NLMISC::CRWSynchronized< T >::CReadAccessor::_RWSynchronized.

00111                 {
00112                         const_cast<CReaderWriter&>(_RWSynchronized->_RWSync).leaveReader();
00113                 }


Member Function Documentation

template<class T>
const T& NLMISC::CRWSynchronized< T >::CReadAccessor::value  )  [inline]
 

Definition at line 115 of file reader_writer.h.

References NLMISC::CRWSynchronized< T >::CReadAccessor::_RWSynchronized.

00116                 {
00117                         return const_cast<const T&>(_RWSynchronized->_Value);
00118                 }


Field Documentation

template<class T>
CRWSynchronized<T>* NLMISC::CRWSynchronized< T >::CReadAccessor::_RWSynchronized [private]
 

Definition at line 100 of file reader_writer.h.

Referenced by NLMISC::CRWSynchronized< T >::CReadAccessor::CReadAccessor(), NLMISC::CRWSynchronized< T >::CReadAccessor::value(), and NLMISC::CRWSynchronized< T >::CReadAccessor::~CReadAccessor().


The documentation for this class was generated from the following file:
Generated on Tue Mar 16 13:32:35 2004 for NeL by doxygen 1.3.6