ACE_Cleanup_Strategy< KEY, VALUE, CONTAINER > 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< KEY, VALUE, CONTAINER >:

Inheritance graph
[legend]
List of all members.

Public Member Functions

virtual ~ACE_Cleanup_Strategy (void)
 Destructor.

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


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 39 of file Cleanup_Strategies_T.h.


Constructor & Destructor Documentation

template<class KEY, class VALUE, class CONTAINER>
ACE_BEGIN_VERSIONED_NAMESPACE_DECL ACE_Cleanup_Strategy< KEY, VALUE, CONTAINER >::~ACE_Cleanup_Strategy void   )  [virtual]
 

Destructor.

Definition at line 17 of file Cleanup_Strategies_T.cpp.

00018 {
00019 }


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< KEY, VALUE, CONTAINER >, ACE_Refcounted_Recyclable_Handler_Cleanup_Strategy< KEY, VALUE, CONTAINER >, ACE_Handler_Cleanup_Strategy< KEY, VALUE, CONTAINER >, and ACE_Null_Cleanup_Strategy< KEY, VALUE, CONTAINER >.

Definition at line 22 of file Cleanup_Strategies_T.cpp.

Referenced by ACE_Recyclable_Handler_Caching_Utility< KEY, VALUE, CONTAINER, ITERATOR, ATTRIBUTES >::clear_cache().

00025 {
00026   return container.unbind (*key);
00027 }


The documentation for this class was generated from the following files:
Generated on Thu Nov 9 11:20:39 2006 for ACE by doxygen 1.3.6