te::graph::FIFOCachePolicy Class Reference

This class is used to implement the FIFO cache policy. More...

#include <FIFOCachePolicy.h>

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

Public Member Functions

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

Method used to access the cache policy

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

Protected Attributes

std::vector< int > m_FIFO
 

Detailed Description

This class is used to implement the FIFO cache policy.

See also
AbstractCachePolicy

Definition at line 48 of file FIFOCachePolicy.h.

Constructor & Destructor Documentation

te::graph::FIFOCachePolicy::FIFOCachePolicy ( )

Default constructor.

virtual te::graph::FIFOCachePolicy::~FIFOCachePolicy ( )
virtual

Virtual destructor.

Member Function Documentation

virtual void te::graph::FIFOCachePolicy::accessed ( int  value)
virtual

Function used to inform that an index was accessed.

Parameters
valueObject index attribute

Implements te::graph::AbstractCachePolicy.

virtual void te::graph::FIFOCachePolicy::added ( int  value)
virtual

Function used to add a new index to be controlled.

Parameters
valueObject index attribute

Implements te::graph::AbstractCachePolicy.

virtual void te::graph::FIFOCachePolicy::toRemove ( int &  value)
virtual

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

Parameters
valueObject index attribute

Implements te::graph::AbstractCachePolicy.

virtual void te::graph::FIFOCachePolicy::update ( int  value)
virtual

Function used to inform that an index must be updated.

Parameters
valueObject index attribute

Implements te::graph::AbstractCachePolicy.

Member Data Documentation

std::vector<int> te::graph::FIFOCachePolicy::m_FIFO
protected

Definition at line 100 of file FIFOCachePolicy.h.


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