ACE_RMCast_Copy_On_Write_Write_Guard< COLLECTION, ITERATOR > Class Template Reference

Implement the write guard for a reference counted collecion. More...

#include <RMCast_Copy_On_Write.h>

Collaboration diagram for ACE_RMCast_Copy_On_Write_Write_Guard< COLLECTION, ITERATOR >:

Collaboration graph
[legend]
List of all members.

Public Types

typedef ACE_RMCast_Copy_On_Write_Collection<
COLLECTION, ITERATOR > 
Collection
typedef ACE_RMCast_Copy_On_Write_Container<
COLLECTION, ITERATOR > 
Container

Public Member Functions

 ACE_RMCast_Copy_On_Write_Write_Guard (Container &container)
 Constructor.
 ~ACE_RMCast_Copy_On_Write_Write_Guard (void)
 Destructor.

Public Attributes

Collectioncopy
 The collection.

Private Attributes

ACE_SYNCH_MUTEXmutex
 Keep a reference to the mutex.
ACE_SYNCH_CONDITIONcond
 Keep a reference to the condition variable.
int & pending_writes
 Use a reference to update the pending writes count.
int & writing_flag
 Use a reference to update the writing flag.
Collection *& collection

Detailed Description

template<class COLLECTION, class ITERATOR>
class ACE_RMCast_Copy_On_Write_Write_Guard< COLLECTION, ITERATOR >

Implement the write guard for a reference counted collecion.

This helper class atomically increments the reference count of a ACE_RMCast_Copy_On_Write_Collection and reads the current collection in the Copy_On_Write class.


Member Typedef Documentation

template<class COLLECTION, class ITERATOR>
typedef ACE_RMCast_Copy_On_Write_Collection<COLLECTION,ITERATOR> ACE_RMCast_Copy_On_Write_Write_Guard< COLLECTION, ITERATOR >::Collection
 

template<class COLLECTION, class ITERATOR>
typedef ACE_RMCast_Copy_On_Write_Container<COLLECTION,ITERATOR> ACE_RMCast_Copy_On_Write_Write_Guard< COLLECTION, ITERATOR >::Container
 


Constructor & Destructor Documentation

template<class COLLECTION, class ITERATOR>
ACE_RMCast_Copy_On_Write_Write_Guard< COLLECTION, ITERATOR >::ACE_RMCast_Copy_On_Write_Write_Guard Container container  ) 
 

Constructor.

template<class COLLECTION, class ITERATOR>
ACE_RMCast_Copy_On_Write_Write_Guard< COLLECTION, ITERATOR >::~ACE_RMCast_Copy_On_Write_Write_Guard void   ) 
 

Destructor.


Member Data Documentation

template<class COLLECTION, class ITERATOR>
Collection*& ACE_RMCast_Copy_On_Write_Write_Guard< COLLECTION, ITERATOR >::collection [private]
 

Use this reference to update the collection once the modifications are finished.

template<class COLLECTION, class ITERATOR>
ACE_SYNCH_CONDITION& ACE_RMCast_Copy_On_Write_Write_Guard< COLLECTION, ITERATOR >::cond [private]
 

Keep a reference to the condition variable.

template<class COLLECTION, class ITERATOR>
Collection* ACE_RMCast_Copy_On_Write_Write_Guard< COLLECTION, ITERATOR >::copy
 

The collection.

template<class COLLECTION, class ITERATOR>
ACE_SYNCH_MUTEX& ACE_RMCast_Copy_On_Write_Write_Guard< COLLECTION, ITERATOR >::mutex [private]
 

Keep a reference to the mutex.

template<class COLLECTION, class ITERATOR>
int& ACE_RMCast_Copy_On_Write_Write_Guard< COLLECTION, ITERATOR >::pending_writes [private]
 

Use a reference to update the pending writes count.

template<class COLLECTION, class ITERATOR>
int& ACE_RMCast_Copy_On_Write_Write_Guard< COLLECTION, ITERATOR >::writing_flag [private]
 

Use a reference to update the writing flag.


The documentation for this class was generated from the following files:
Generated on Wed Nov 23 15:54:20 2005 for ACE_RMCast by  doxygen 1.4.5