39 m_FIFO.push_back(value);
44 std::vector<int>::iterator itFIFO = m_FIFO.begin();
46 while(itFIFO != m_FIFO.end())
51 m_FIFO.push_back(value);
60 value = *m_FIFO.begin();
62 m_FIFO.erase(m_FIFO.begin());
virtual void added(int value)
Function used to add a new index to be controlled.
FIFOCachePolicy()
Default constructor.
virtual ~FIFOCachePolicy()
Virtual destructor.
virtual void update(int value)
Function used to inform that an index must be updated.
virtual void toRemove(int &value)
Function used to check what index has to be removed from the cache.
virtual void accessed(int value)
Function used to inform that an index was accessed.
This class is used to implement the FIFO cache policy.