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

ACE_Cleanup_Strategy Class Template Reference

Defines a default strategy to be followed for cleaning up entries from a map which is the container. More...

#include <Cleanup_Strategies_T.h>

Inheritance diagram for ACE_Cleanup_Strategy:

Inheritance 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_Cleanup_Strategy< KEY, VALUE, CONTAINER >

Defines a default strategy to be followed for cleaning up entries from a map which is the container.

By default the entry to be cleaned up is removed from the container.

Definition at line 37 of file Cleanup_Strategies_T.h.


Member Function Documentation

template<class KEY, class VALUE, class CONTAINER>
int ACE_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 in ACE_Recyclable_Handler_Cleanup_Strategy.

Definition at line 17 of file Cleanup_Strategies_T.cpp.

Referenced by ACE_Handler_Caching_Utility::clear_cache, ACE_Refcounted_Recyclable_Handler_Caching_Utility::clear_cache, ACE_Recyclable_Handler_Caching_Utility::clear_cache, and ACE_Pair_Caching_Utility::clear_cache.

00020 {
00021   ACE_UNUSED_ARG (value);
00022 
00023   return container.unbind (*key);
00024 }


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