Itoyori  v0.0.1
ityr::ori::cache_system< Key, Entry > Class Template Reference

#include <cache_system.hpp>

Public Member Functions

 cache_system (cache_entry_idx_t nentries)
 
 cache_system (cache_entry_idx_t nentries, const Entry &e)
 
cache_entry_idx_t num_entries () const
 
bool is_cached (Key key) const
 
template<bool UpdateLRU = true>
Entry & ensure_cached (Key key)
 
void ensure_evicted (Key key)
 
template<typename Func >
void for_each_entry (Func &&f)
 

Constructor & Destructor Documentation

◆ cache_system() [1/2]

template<typename Key , typename Entry >
ityr::ori::cache_system< Key, Entry >::cache_system ( cache_entry_idx_t  nentries)
inline

◆ cache_system() [2/2]

template<typename Key , typename Entry >
ityr::ori::cache_system< Key, Entry >::cache_system ( cache_entry_idx_t  nentries,
const Entry &  e 
)
inline

Member Function Documentation

◆ ensure_cached()

template<typename Key , typename Entry >
template<bool UpdateLRU = true>
Entry& ityr::ori::cache_system< Key, Entry >::ensure_cached ( Key  key)
inline

◆ ensure_evicted()

template<typename Key , typename Entry >
void ityr::ori::cache_system< Key, Entry >::ensure_evicted ( Key  key)
inline

◆ for_each_entry()

template<typename Key , typename Entry >
template<typename Func >
void ityr::ori::cache_system< Key, Entry >::for_each_entry ( Func &&  f)
inline

◆ is_cached()

template<typename Key , typename Entry >
bool ityr::ori::cache_system< Key, Entry >::is_cached ( Key  key) const
inline

◆ num_entries()

template<typename Key , typename Entry >
cache_entry_idx_t ityr::ori::cache_system< Key, Entry >::num_entries ( ) const
inline

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