Electroneum
Public Member Functions | Private Attributes | List of all members
caches::FIFOCachePolicy< Key > Class Template Reference

#include <fifo_cache_policy.hpp>

Inheritance diagram for caches::FIFOCachePolicy< Key >:
Inheritance graph
[legend]
Collaboration diagram for caches::FIFOCachePolicy< Key >:
Collaboration graph
[legend]

Public Member Functions

 FIFOCachePolicy ()=default
 
 ~FIFOCachePolicy ()=default
 
void Insert (const Key &key) override
 
void Touch (const Key &key) override
 
void Erase (const Key &key) override
 
const Key & ReplCandidate () const override
 
void Clear () override
 
- Public Member Functions inherited from caches::ICachePolicy< Key >
virtual ~ICachePolicy ()
 

Private Attributes

std::list< Key > fifo_queue
 

Constructor & Destructor Documentation

◆ FIFOCachePolicy()

template<typename Key >
caches::FIFOCachePolicy< Key >::FIFOCachePolicy ( )
default

◆ ~FIFOCachePolicy()

template<typename Key >
caches::FIFOCachePolicy< Key >::~FIFOCachePolicy ( )
default

Member Function Documentation

◆ Clear()

template<typename Key >
void caches::FIFOCachePolicy< Key >::Clear ( )
inlineoverridevirtual

◆ Erase()

template<typename Key >
void caches::FIFOCachePolicy< Key >::Erase ( const Key &  key)
inlineoverridevirtual

◆ Insert()

template<typename Key >
void caches::FIFOCachePolicy< Key >::Insert ( const Key &  key)
inlineoverridevirtual

◆ ReplCandidate()

template<typename Key >
const Key& caches::FIFOCachePolicy< Key >::ReplCandidate ( ) const
inlineoverridevirtual

◆ Touch()

template<typename Key >
void caches::FIFOCachePolicy< Key >::Touch ( const Key &  key)
inlineoverridevirtual

Member Data Documentation

◆ fifo_queue

template<typename Key >
std::list<Key> caches::FIFOCachePolicy< Key >::fifo_queue
private

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