te::graph::AbstractCachePolicy Class Referenceabstract

This class is used to set the main functions of a cache policy. More...

#include <AbstractCachePolicy.h>

Inheritance diagram for te::graph::AbstractCachePolicy:
te::graph::FIFOCachePolicy te::graph::LFUCachePolicy

Public Member Functions

 AbstractCachePolicy ()
 Default constructor. More...
 
virtual ~AbstractCachePolicy ()
 Virtual destructor. More...
 
Access Methods

Method used to access the cache policy

virtual void added (int value)=0
 Function used to add a new index to be controlled. More...
 
virtual void update (int value)=0
 Function used to inform that an index must be updated. More...
 
virtual void toRemove (int &value)=0
 Function used to check what index has to be removed from the cache. More...
 
virtual void accessed (int value)=0
 Function used to inform that an index was accessed. More...
 

Detailed Description

This class is used to set the main functions of a cache policy.

This is a generic interface to control the access frequency to any type of objects. Only the index of each object is controlled by this class.

Definition at line 54 of file AbstractCachePolicy.h.

Constructor & Destructor Documentation

te::graph::AbstractCachePolicy::AbstractCachePolicy ( )

Default constructor.

virtual te::graph::AbstractCachePolicy::~AbstractCachePolicy ( )
virtual

Virtual destructor.

Member Function Documentation

virtual void te::graph::AbstractCachePolicy::accessed ( int  value)
pure virtual

Function used to inform that an index was accessed.

Parameters
valueObject index attribute

Implemented in te::graph::FIFOCachePolicy, and te::graph::LFUCachePolicy.

virtual void te::graph::AbstractCachePolicy::added ( int  value)
pure virtual

Function used to add a new index to be controlled.

Parameters
valueObject index attribute

Implemented in te::graph::FIFOCachePolicy, and te::graph::LFUCachePolicy.

virtual void te::graph::AbstractCachePolicy::toRemove ( int &  value)
pure virtual

Function used to check what index has to be removed from the cache.

Parameters
valueObject index attribute

Implemented in te::graph::FIFOCachePolicy, and te::graph::LFUCachePolicy.

virtual void te::graph::AbstractCachePolicy::update ( int  value)
pure virtual

Function used to inform that an index must be updated.

Parameters
valueObject index attribute

Implemented in te::graph::FIFOCachePolicy, and te::graph::LFUCachePolicy.


The documentation for this class was generated from the following file: