proxy_guard< Container, Mutex > Class Template Reference

List of all members.

Public Types

typedef Container::value_type value_type
 Same types as the original container.
typedef Container::const_reference const_reference

Public Member Functions

 proxy_guard (Container &aCont, Mutex &aMtx)
void push_back (const_reference aVT)

Private Attributes

Container & _Cont
Mutex & _Mtx

Detailed Description

template<class Container, class Mutex>
class proxy_guard< Container, Mutex >

proxy_guard This encapsulates the method 'push_back' of a container, so that the output iterators created by 'stdback_inserter' is protected against concurrent updates, and so, several back_insert_iterator can simultaneously insert into the same container.


Member Typedef Documentation

template<class Container, class Mutex>
typedef Container::const_reference proxy_guard< Container, Mutex >::const_reference

template<class Container, class Mutex>
typedef Container::value_type proxy_guard< Container, Mutex >::value_type

Same types as the original container.


Constructor & Destructor Documentation

template<class Container, class Mutex>
proxy_guard< Container, Mutex >::proxy_guard ( Container &  aCont,
Mutex &  aMtx 
) [inline]


Member Function Documentation

template<class Container, class Mutex>
void proxy_guard< Container, Mutex >::push_back ( const_reference  aVT  )  [inline]


Member Data Documentation

template<class Container, class Mutex>
Container& proxy_guard< Container, Mutex >::_Cont [private]

template<class Container, class Mutex>
Mutex& proxy_guard< Container, Mutex >::_Mtx [private]


The documentation for this class was generated from the following file:
Generated on Tue Sep 25 10:20:31 2007 for rpa by  doxygen 1.4.7