Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

TAO_ESF_Immediate_Changes Class Template Reference

Implement the Immediate_Changes strategy. More...

#include <ESF_Immediate_Changes.h>

Inheritance diagram for TAO_ESF_Immediate_Changes

Inheritance graph
[legend]
Collaboration diagram for TAO_ESF_Immediate_Changes:

Collaboration graph
[legend]
List of all members.

Public Methods

 TAO_ESF_Immediate_Changes (void)
 TAO_ESF_Immediate_Changes (const COLLECTION &collection)
virtual void for_each (TAO_ESF_Worker<PROXY> *worker, CORBA::Environment &ACE_TRY_ENV)
virtual void connected (PROXY *proxy, CORBA::Environment &ACE_TRY_ENV)
 Insert a new element into the collection. The collection assumes ownership of the element.

virtual void reconnected (PROXY *proxy, CORBA::Environment &ACE_TRY_ENV)
virtual void disconnected (PROXY *proxy, CORBA::Environment &ACE_TRY_ENV)
 Remove an element from the collection.

virtual void shutdown (CORBA::Environment &ACE_TRY_ENV)
 The EC is shutting down, must release all the elements.


Private Attributes

COLLECTION collection_
ACE_LOCK lock_

Detailed Description

template<class PROXY, class COLLECTION, class ITERATOR, class ACE_LOCK> template class TAO_ESF_Immediate_Changes

Implement the Immediate_Changes strategy.


Constructor & Destructor Documentation

template<classPROXY, classCOLLECTION, classITERATOR, classACE_LOCK>
TAO_ESF_Immediate_Changes<PROXY, COLLECTION, ITERATOR, ACE_LOCK>::TAO_ESF_Immediate_Changes<PROXY, COLLECTION, ITERATOR, ACE_LOCK> ( void )
 

template<classPROXY, classC, classITERATOR, classACE_LOCK>
TAO_ESF_Immediate_Changes< PROXY,C,ITERATOR,ACE_LOCK >::TAO_ESF_Immediate_Changes<PROXY, C, ITERATOR, ACE_LOCK> ( const C & collection )
 


Member Function Documentation

template<classPROXY, classCOLLECTION, classITERATOR, classACE_LOCK>
void TAO_ESF_Immediate_Changes< PROXY,COLLECTION,ITERATOR,ACE_LOCK >::connected ( PROXY * proxy,
CORBA::Environment & ACE_TRY_ENV ) [virtual]
 

Insert a new element into the collection. The collection assumes ownership of the element.

Reimplemented from TAO_ESF_Proxy_Collection.

template<classPROXY, classCOLLECTION, classITERATOR, classACE_LOCK>
void TAO_ESF_Immediate_Changes< PROXY,COLLECTION,ITERATOR,ACE_LOCK >::disconnected ( PROXY * proxy,
CORBA::Environment & ACE_TRY_ENV ) [virtual]
 

Remove an element from the collection.

Reimplemented from TAO_ESF_Proxy_Collection.

template<classPROXY, classC, classITERATOR, classACE_LOCK>
void TAO_ESF_Immediate_Changes< PROXY,C,ITERATOR,ACE_LOCK >::for_each ( TAO_ESF_Worker< PROXY >* worker,
CORBA::Environment & ACE_TRY_ENV ) [virtual]
 

Iterate over the collection and invoke worker->work() for each member of the collection. This encapsulates

Reimplemented from TAO_ESF_Proxy_Collection.

template<classPROXY, classCOLLECTION, classITERATOR, classACE_LOCK>
void TAO_ESF_Immediate_Changes< PROXY,COLLECTION,ITERATOR,ACE_LOCK >::reconnected ( PROXY * proxy,
CORBA::Environment & ACE_TRY_ENV ) [virtual]
 

Insert an element into the collection. No errors can be raised if the element is already present. The collection assumes ownership, i.e. must invoke <proxy->_decr_refcnt()> if the element is already present in the collection.

Reimplemented from TAO_ESF_Proxy_Collection.

template<classPROXY, classCOLLECTION, classITERATOR, classACE_LOCK>
void TAO_ESF_Immediate_Changes< PROXY,COLLECTION,ITERATOR,ACE_LOCK >::shutdown ( CORBA::Environment & ACE_TRY_ENV ) [virtual]
 

The EC is shutting down, must release all the elements.

Reimplemented from TAO_ESF_Proxy_Collection.


Member Data Documentation

template<classPROXY, classCOLLECTION, classITERATOR, classACE_LOCK>
COLLECTION TAO_ESF_Immediate_Changes<PROXY, COLLECTION, ITERATOR, ACE_LOCK>::collection_ [private]
 

template<classPROXY, classCOLLECTION, classITERATOR, classACE_LOCK>
ACE_LOCK TAO_ESF_Immediate_Changes<PROXY, COLLECTION, ITERATOR, ACE_LOCK>::lock_ [private]
 


The documentation for this class was generated from the following files:
Generated at Wed Nov 21 12:03:29 2001 for TAO_ESF by doxygen1.2.3 written by Dimitri van Heesch, © 1997-2000