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

ACE_Recyclable_Handler_Cleanup_Strategy Class Template Reference

Defines a strategy to be followed for cleaning up entries which are svc_handlers from a container. More...

#include <Cleanup_Strategies_T.h>

Inheritance diagram for ACE_Recyclable_Handler_Cleanup_Strategy:

Inheritance graph
[legend]
Collaboration diagram for ACE_Recyclable_Handler_Cleanup_Strategy:

Collaboration graph
[legend]
List of all members.

Public Methods

virtual int cleanup (CONTAINER &container, KEY *key, VALUE *value)
 The method which will do the cleanup of the entry in the container. More...


Detailed Description

template<class KEY, class VALUE, class CONTAINER>
class ACE_Recyclable_Handler_Cleanup_Strategy< KEY, VALUE, CONTAINER >

Defines a strategy to be followed for cleaning up entries which are svc_handlers from a container.

The entry to be cleaned up is removed from the container. Here, since we are dealing with svc_handlers specifically, we perform a couple of extra operations. Note: To be used when the handler is recyclable.

Definition at line 61 of file Cleanup_Strategies_T.h.


Member Function Documentation

template<class KEY, class VALUE, class CONTAINER>
int ACE_Recyclable_Handler_Cleanup_Strategy< KEY, VALUE, CONTAINER >::cleanup CONTAINER &    container,
KEY *    key,
VALUE *    value
[virtual]
 

The method which will do the cleanup of the entry in the container.

Reimplemented from ACE_Cleanup_Strategy.

Definition at line 29 of file Cleanup_Strategies_T.cpp.

00032 {
00033   VALUE value;
00034 
00035   if (container.unbind (*key, value) == -1)
00036     return -1;
00037 
00038   value.first ()->recycler (0, 0);
00039 
00040   value.first ()->close ();
00041 
00042   return 0;
00043 }


The documentation for this class was generated from the following files:
Generated on Mon Jun 16 12:55:00 2003 for ACE by doxygen1.2.14 written by Dimitri van Heesch, © 1997-2002