MySQL 26.10.0
Source Code Documentation
mysql_harness::utility::cache::policy::Lru::AlgorithmDynamic< Key > Class Template Reference

#include <lru.h>

Public Types

using Buffer = std::list< Key >
 

Public Member Functions

 AlgorithmDynamic (size_t max_size)
 
void access (const Key &key)
 
void remove (const Key &key)
 
void push (const Key &key, Key **out_key=nullptr)
 
Key * pop ()
 
const Buffer & get_container () const
 
bool is_full () const
 

Private Attributes

Buffer buffer_
 
Key key_
 
size_t max_size_
 

Member Typedef Documentation

◆ Buffer

template<typename Key >
using mysql_harness::utility::cache::policy::Lru::AlgorithmDynamic< Key >::Buffer = std::list<Key>

Constructor & Destructor Documentation

◆ AlgorithmDynamic()

template<typename Key >
mysql_harness::utility::cache::policy::Lru::AlgorithmDynamic< Key >::AlgorithmDynamic ( size_t  max_size)
inlineexplicit

Member Function Documentation

◆ access()

template<typename Key >
void mysql_harness::utility::cache::policy::Lru::AlgorithmDynamic< Key >::access ( const Key &  key)
inline

◆ get_container()

template<typename Key >
const Buffer & mysql_harness::utility::cache::policy::Lru::AlgorithmDynamic< Key >::get_container ( ) const
inline

◆ is_full()

template<typename Key >
bool mysql_harness::utility::cache::policy::Lru::AlgorithmDynamic< Key >::is_full ( ) const
inline

◆ pop()

template<typename Key >
Key * mysql_harness::utility::cache::policy::Lru::AlgorithmDynamic< Key >::pop ( )
inline

◆ push()

template<typename Key >
void mysql_harness::utility::cache::policy::Lru::AlgorithmDynamic< Key >::push ( const Key &  key,
Key **  out_key = nullptr 
)
inline

◆ remove()

template<typename Key >
void mysql_harness::utility::cache::policy::Lru::AlgorithmDynamic< Key >::remove ( const Key &  key)
inline

Member Data Documentation

◆ buffer_

template<typename Key >
Buffer mysql_harness::utility::cache::policy::Lru::AlgorithmDynamic< Key >::buffer_
private

◆ key_

template<typename Key >
Key mysql_harness::utility::cache::policy::Lru::AlgorithmDynamic< Key >::key_
private

◆ max_size_

template<typename Key >
size_t mysql_harness::utility::cache::policy::Lru::AlgorithmDynamic< Key >::max_size_
private

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