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

#include <reader_writer.h>

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


Public Member Functions

 CWriteAccessor (CRWSynchronized< T > *cs)
T & value ()
 ~CWriteAccessor ()

Private Attributes

CRWSynchronized< T > * _RWSynchronized

Constructor & Destructor Documentation

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

Definition at line 127 of file reader_writer.h.

00128                 {
00129                         _RWSynchronized = cs;
00130                         const_cast<CReaderWriter&>(_RWSynchronized->_RWSync).enterWriter();
00131                 }

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

Definition at line 133 of file reader_writer.h.

00134                 {
00135                         const_cast<CReaderWriter&>(_RWSynchronized->_RWSync).leaveWriter();
00136                 }


Member Function Documentation

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

Definition at line 138 of file reader_writer.h.

00139                 {
00140                         return const_cast<T&>(_RWSynchronized->_Value);
00141                 }


Field Documentation

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

Definition at line 123 of file reader_writer.h.


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