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

#include <cache_policy.hpp>

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

Public Member Functions

 NoCachePolicy ()=default
 
 ~NoCachePolicy () override=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::unordered_set< Key > key_storage
 

Constructor & Destructor Documentation

◆ NoCachePolicy()

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

◆ ~NoCachePolicy()

template<typename Key >
caches::NoCachePolicy< Key >::~NoCachePolicy ( )
overridedefault

Member Function Documentation

◆ Clear()

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

◆ Erase()

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

◆ Insert()

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

◆ ReplCandidate()

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

◆ Touch()

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

Member Data Documentation

◆ key_storage

template<typename Key >
std::unordered_set<Key> caches::NoCachePolicy< Key >::key_storage
private

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