ACE_Caching_Strategy(3)

ACE_Caching_Strategy3

This class is an abstract base class for a caching strategy.

Usage

#include <ace/Caching_Strategies_T.h>
template<class ATTRIBUTES, class CACHING_UTILITY>
class ACE_Caching_Strategy
{
  public:
    virtual ~ACE_Caching_Strategy (void);
    virtual ATTRIBUTES attributes (void) = 0;
    virtual double purge_percent (void) = 0;
    virtual void purge_percent (double percentage) = 0;
    virtual int notify_bind (int result, const ATTRIBUTES &attr) = 0;
    virtual int notify_find (int result, ATTRIBUTES &attr) = 0;
    virtual int notify_unbind (
        int result,
        const ATTRIBUTES &attr
        ) = 0;
    virtual int notify_trybind (int result, ATTRIBUTES &attr) = 0;
    virtual int notify_rebind (
        int result,
        const ATTRIBUTES &attr
        ) = 0;
    virtual CACHING_UTILITY &caching_utility (void) = 0;
    virtual void dump (void) const = 0;
};

Overview

This class consists of all the interfaces a caching strategy should have and is used in association with the ACE_Caching_Strategy_Adaptor.

Accessor methods for the percentage of entries to purge.

virtual double purge_percent (void) = 0;
virtual void purge_percent (double percentage) = 0;

Library

ace

Author

Kirthika Parameswaran [email protected]

From libace-doc 5.0.7-4 in Debian 2.2 (Potato). Parsed by carta from the page's man source.