NAME

ACE_Null_Caching_Strategy - The is a special caching strategy which doesnt have the purging feature.

SYNOPSIS

#include <ace/Caching_Strategies_T.h>

template<class ATTRIBUTES, class CACHING_UTILITY> class ACE_Null_Caching_Strategy { public: typedef ATTRIBUTES CACHING_ATTRIBUTES; ATTRIBUTES attributes (void); double purge_percent (void); void purge_percent (double percentage); int notify_bind (int result, const ATTRIBUTES &attr); int notify_find (int result, ATTRIBUTES &attr); int notify_unbind (int result, const ATTRIBUTES &attr); int notify_trybind (int result, ATTRIBUTES &attr); int notify_rebind (int result, const ATTRIBUTES &attr); CACHING_UTILITY &caching_utility (void); void dump (void) const; private: CACHING_UTILITY caching_utility_; };

DESCRIPTION

No purging provided. To be used when purging might be too expensive an operation.

Traits.

typedef ATTRIBUTES CACHING_ATTRIBUTES;

Strategy methods. All are NO_OP methods!!!

ATTRIBUTES attributes (void);

Accessor methods for the percentage of entries to purge.

double purge_percent (void);

void purge_percent (double percentage);

= Strategy related Operations

int notify_bind (int result, const ATTRIBUTES &attr);

int notify_find (int result, ATTRIBUTES &attr);

int notify_unbind (int result, const ATTRIBUTES &attr);

int notify_trybind (int result, ATTRIBUTES &attr);

int notify_rebind (int result, const ATTRIBUTES &attr);

CACHING_UTILITY &caching_utility (void);

void dump (void) const;

AUTHOR

Kirthika Parameswaran kirthika@cs.wustl.edu

LIBRARY

ace