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

#include <lru.h>

Public Types

using Buffer = container::CycleBufferArray< Key, size >
 

Public Member Functions

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_
 

Member Typedef Documentation

◆ Buffer

template<typename Key , uint32_t size>
using mysql_harness::utility::cache::policy::Lru::AlgorithmFixed< Key, size >::Buffer = container::CycleBufferArray<Key, size>

Member Function Documentation

◆ access()

template<typename Key , uint32_t size>
void mysql_harness::utility::cache::policy::Lru::AlgorithmFixed< Key, size >::access ( const Key &  key)
inline

◆ get_container()

template<typename Key , uint32_t size>
const Buffer & mysql_harness::utility::cache::policy::Lru::AlgorithmFixed< Key, size >::get_container ( ) const
inline

◆ is_full()

template<typename Key , uint32_t size>
bool mysql_harness::utility::cache::policy::Lru::AlgorithmFixed< Key, size >::is_full ( ) const
inline

◆ pop()

template<typename Key , uint32_t size>
Key * mysql_harness::utility::cache::policy::Lru::AlgorithmFixed< Key, size >::pop ( )
inline

◆ push()

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

◆ remove()

template<typename Key , uint32_t size>
void mysql_harness::utility::cache::policy::Lru::AlgorithmFixed< Key, size >::remove ( const Key &  key)
inline

Member Data Documentation

◆ buffer_

template<typename Key , uint32_t size>
Buffer mysql_harness::utility::cache::policy::Lru::AlgorithmFixed< Key, size >::buffer_
private

◆ key_

template<typename Key , uint32_t size>
Key mysql_harness::utility::cache::policy::Lru::AlgorithmFixed< Key, size >::key_
private

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