TAO_ESF_Worker< Object > Class Template Reference

Define the interface for the Worker objects. More...

#include <ESF_Worker.h>

List of all members.

Public Member Functions

virtual ~TAO_ESF_Worker (void)
virtual void set_size (size_t size)
virtual void work (Object *object)=0
 Callback interface.


Detailed Description

template<class Object>
class TAO_ESF_Worker< Object >

Define the interface for the Worker objects.

The Event Service Framework uses Worker classes to iterate over collections of proxies. The following class defines the worker interface, basically users of the framework implement a worker object and pass it to one collection. The collection invokes the worker for each element the colection contains.

Definition at line 43 of file ESF_Worker.h.


Constructor & Destructor Documentation

template<class Object>
TAO_BEGIN_VERSIONED_NAMESPACE_DECL TAO_ESF_Worker< Object >::~TAO_ESF_Worker ( void   )  [virtual]

Definition at line 11 of file ESF_Worker.cpp.

00012 {
00013 }


Member Function Documentation

template<class Object>
void TAO_ESF_Worker< Object >::set_size ( size_t  size  )  [virtual]

Used by the collection to inform the worker the number of proxies in the collection.

Definition at line 16 of file ESF_Worker.cpp.

Referenced by TAO_ESF_Immediate_Changes< PROXY, COLLECTION, ITERATOR, ACE_LOCK >::for_each(), TAO_ESF_Delayed_Changes< PROXY, COLLECTION, ITERATOR, >::for_each(), TAO_ESF_Copy_On_Write< PROXY, COLLECTION, ITERATOR, >::for_each(), and TAO_ESF_Copy_On_Read< PROXY, COLLECTION, ITERATOR, ACE_LOCK >::for_each().

00017 {
00018 }

template<class Object>
virtual void TAO_ESF_Worker< Object >::work ( Object *  object  )  [pure virtual]

Callback interface.

Implemented in TAO_ESF_Shutdown_Proxy< PROXY >.

Referenced by TAO_ESF_Immediate_Changes< PROXY, COLLECTION, ITERATOR, ACE_LOCK >::for_each(), TAO_ESF_Delayed_Changes< PROXY, COLLECTION, ITERATOR, >::for_each(), TAO_ESF_Copy_On_Write< PROXY, COLLECTION, ITERATOR, >::for_each(), and TAO_ESF_Copy_On_Read< PROXY, COLLECTION, ITERATOR, ACE_LOCK >::for_each().


The documentation for this class was generated from the following files:
Generated on Tue Feb 2 17:43:52 2010 for TAO_ESF by  doxygen 1.4.7