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< intm_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

Default constructor.

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

Virtual destructor.

Definition at line 30 of file FIFOCachePolicy.cpp.

References m_FIFO.

Member Function Documentation

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.

Definition at line 63 of file FIFOCachePolicy.cpp.

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.

Definition at line 35 of file FIFOCachePolicy.cpp.

References m_FIFO.

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.

Definition at line 56 of file FIFOCachePolicy.cpp.

References m_FIFO.

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.

Definition at line 40 of file FIFOCachePolicy.cpp.

References m_FIFO.

Member Data Documentation

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

Definition at line 100 of file FIFOCachePolicy.h.

Referenced by added(), toRemove(), update(), and ~FIFOCachePolicy().


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