TAO_ESF 4.0.0
Loading...
Searching...
No Matches
Public Member Functions | Private Attributes | List of all members
TAO_ESF_Immediate_Changes< PROXY, COLLECTION, ITERATOR, ACE_LOCK > Class Template Reference

Implement the Immediate_Changes strategy. More...

#include <ESF_Immediate_Changes.h>

Inheritance diagram for TAO_ESF_Immediate_Changes< PROXY, COLLECTION, ITERATOR, ACE_LOCK >:
Inheritance graph
[legend]
Collaboration diagram for TAO_ESF_Immediate_Changes< PROXY, COLLECTION, ITERATOR, ACE_LOCK >:
Collaboration graph
[legend]

Public Member Functions

 TAO_ESF_Immediate_Changes ()
 
 TAO_ESF_Immediate_Changes (const COLLECTION &collection)
 
virtual void for_each (TAO_ESF_Worker< PROXY > *worker)
 
virtual void connected (PROXY *proxy)
 
virtual void reconnected (PROXY *proxy)
 
virtual void disconnected (PROXY *proxy)
 Remove an element from the collection.
 
virtual void shutdown ()
 The EC is shutting down, must release all the elements.
 
- Public Member Functions inherited from TAO_ESF_Proxy_Collection< PROXY >
virtual ~TAO_ESF_Proxy_Collection ()
 destructor
 

Private Attributes

COLLECTION collection_
 
ACE_LOCK lock_
 

Detailed Description

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

Implement the Immediate_Changes strategy.

Constructor & Destructor Documentation

◆ TAO_ESF_Immediate_Changes() [1/2]

template<class PROXY , class C , class ITERATOR , class ACE_LOCK >
TAO_ESF_Immediate_Changes< PROXY, C, ITERATOR, ACE_LOCK >::TAO_ESF_Immediate_Changes ( )

◆ TAO_ESF_Immediate_Changes() [2/2]

template<class PROXY , class COLLECTION , class ITERATOR , class ACE_LOCK >
TAO_ESF_Immediate_Changes< PROXY, COLLECTION, ITERATOR, ACE_LOCK >::TAO_ESF_Immediate_Changes ( const COLLECTION & collection)

Member Function Documentation

◆ connected()

template<class PROXY , class COLLECTION , class ITERATOR , class ACE_LOCK >
void TAO_ESF_Immediate_Changes< PROXY, COLLECTION, ITERATOR, ACE_LOCK >::connected ( PROXY * proxy)
virtual

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

Implements TAO_ESF_Proxy_Collection< PROXY >.

◆ disconnected()

template<class PROXY , class COLLECTION , class ITERATOR , class ACE_LOCK >
void TAO_ESF_Immediate_Changes< PROXY, COLLECTION, ITERATOR, ACE_LOCK >::disconnected ( PROXY * proxy)
virtual

Remove an element from the collection.

Implements TAO_ESF_Proxy_Collection< PROXY >.

◆ for_each()

template<class PROXY , class C , class ITERATOR , class ACE_LOCK >
void TAO_ESF_Immediate_Changes< PROXY, C, ITERATOR, ACE_LOCK >::for_each ( TAO_ESF_Worker< PROXY > * worker)
virtual

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

Implements TAO_ESF_Proxy_Collection< PROXY >.

◆ reconnected()

template<class PROXY , class COLLECTION , class ITERATOR , class ACE_LOCK >
void TAO_ESF_Immediate_Changes< PROXY, COLLECTION, ITERATOR, ACE_LOCK >::reconnected ( PROXY * proxy)
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.

Implements TAO_ESF_Proxy_Collection< PROXY >.

◆ shutdown()

template<class PROXY , class COLLECTION , class ITERATOR , class ACE_LOCK >
void TAO_ESF_Immediate_Changes< PROXY, COLLECTION, ITERATOR, ACE_LOCK >::shutdown ( )
virtual

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

Implements TAO_ESF_Proxy_Collection< PROXY >.

Member Data Documentation

◆ collection_

template<class PROXY , class COLLECTION , class ITERATOR , class ACE_LOCK >
COLLECTION TAO_ESF_Immediate_Changes< PROXY, COLLECTION, ITERATOR, ACE_LOCK >::collection_
private

◆ lock_

template<class PROXY , class COLLECTION , class ITERATOR , class ACE_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: