All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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.

Definition at line 28 of file FIFOCachePolicy.cpp.

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

Virtual destructor.

Definition at line 32 of file FIFOCachePolicy.cpp.

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 65 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 37 of file FIFOCachePolicy.cpp.

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 58 of file FIFOCachePolicy.cpp.

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 42 of file FIFOCachePolicy.cpp.

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 files: