libjmmcg  release_579_6_g8cffd
A C++ library containing an eclectic mix of useful, advanced components.
jmmcg::LIBJMMCG_VER_NAMESPACE::cache::lru< Val > Class Template Reference

An implementation of an Least Recently Used (LRU) algorithm for selecting victim entries in the cache for flushing. More...

#include <cache.hpp>

Classes

class  criterion_t
 

Public Types

typedef Val value_type
 

Public Member Functions

constexpr __stdcall lru (void)
 
constexpr __stdcall lru (const value_type &)
 
__stdcall lru (const lru &)
 
__stdcall ~lru (void)
 
lru &__fastcall operator= (const lru &)
 
const value_type &__fastcall value (void) const noexcept(true)
 
value_type &__fastcall value (void) noexcept(true)
 
clock_t __fastcall accessed (void) const noexcept(true)
 

Static Public Member Functions

template<typename Iter >
static const criterion_t __fastcall select (Iter beg, const Iter &end)
 

Detailed Description

template<typename Val>
class jmmcg::LIBJMMCG_VER_NAMESPACE::cache::lru< Val >

An implementation of an Least Recently Used (LRU) algorithm for selecting victim entries in the cache for flushing.

Definition at line 138 of file cache.hpp.

Member Typedef Documentation

◆ value_type

template<typename Val >
typedef Val jmmcg::LIBJMMCG_VER_NAMESPACE::cache::lru< Val >::value_type

Definition at line 140 of file cache.hpp.

Constructor & Destructor Documentation

◆ lru() [1/3]

template<typename Val_ >
constexpr jmmcg::LIBJMMCG_VER_NAMESPACE::cache::lru< Val_ >::lru ( void  )
inlineconstexpr

Definition at line 22 of file cache_impl.hpp.

◆ lru() [2/3]

template<typename Val_ >
constexpr jmmcg::LIBJMMCG_VER_NAMESPACE::cache::lru< Val_ >::lru ( const value_type v)
inlineexplicitconstexpr

Definition at line 27 of file cache_impl.hpp.

◆ lru() [3/3]

template<typename Val_ >
jmmcg::LIBJMMCG_VER_NAMESPACE::cache::lru< Val_ >::lru ( const lru< Val > &  l)
inline

Definition at line 32 of file cache_impl.hpp.

◆ ~lru()

template<typename Val_ >
jmmcg::LIBJMMCG_VER_NAMESPACE::cache::lru< Val_ >::~lru ( void  )
inline

Definition at line 37 of file cache_impl.hpp.

Member Function Documentation

◆ accessed()

template<typename Val_ >
clock_t jmmcg::LIBJMMCG_VER_NAMESPACE::cache::lru< Val_ >::accessed ( void  ) const
inlinenoexcept

Definition at line 60 of file cache_impl.hpp.

◆ operator=()

template<typename Val_ >
lru< Val_ > & jmmcg::LIBJMMCG_VER_NAMESPACE::cache::lru< Val_ >::operator= ( const lru< Val > &  l)
inline

Definition at line 41 of file cache_impl.hpp.

◆ select()

template<typename Val >
template<typename Iter >
static const criterion_t __fastcall jmmcg::LIBJMMCG_VER_NAMESPACE::cache::lru< Val >::select ( Iter  beg,
const Iter &  end 
)
inlinestatic

Definition at line 171 of file cache.hpp.

◆ value() [1/2]

template<typename Val_ >
const lru< Val_ >::value_type & jmmcg::LIBJMMCG_VER_NAMESPACE::cache::lru< Val_ >::value ( void  ) const
inlinenoexcept

Definition at line 48 of file cache_impl.hpp.

◆ value() [2/2]

template<typename Val_ >
lru< Val_ >::value_type & jmmcg::LIBJMMCG_VER_NAMESPACE::cache::lru< Val_ >::value ( void  )
inlinenoexcept

Definition at line 54 of file cache_impl.hpp.


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