This class is used to implement the FIFO cache policy. More...
#include <FIFOCachePolicy.h>
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 |
This class is used to implement the FIFO cache policy.
Definition at line 48 of file FIFOCachePolicy.h.
|
default |
Default constructor.
|
virtual |
|
virtual |
Function used to inform that an index was accessed.
| value | Object index attribute |
Implements te::graph::AbstractCachePolicy.
Definition at line 63 of file FIFOCachePolicy.cpp.
|
virtual |
Function used to add a new index to be controlled.
| value | Object index attribute |
Implements te::graph::AbstractCachePolicy.
Definition at line 35 of file FIFOCachePolicy.cpp.
References m_FIFO.
|
virtual |
Function used to check what index has to be removed from the cache.
| value | Object index attribute |
Implements te::graph::AbstractCachePolicy.
Definition at line 56 of file FIFOCachePolicy.cpp.
References m_FIFO.
|
virtual |
Function used to inform that an index must be updated.
| value | Object index attribute |
Implements te::graph::AbstractCachePolicy.
Definition at line 40 of file FIFOCachePolicy.cpp.
References m_FIFO.
|
protected |
Definition at line 100 of file FIFOCachePolicy.h.
Referenced by added(), toRemove(), update(), and ~FIFOCachePolicy().