MySQL 9.3.0
Source Code Documentation
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages Concepts
helper::cache::policy::Lru::Algorithm< Key, Value, 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 Bufferget_container () const
 

Private Attributes

Buffer buffer_
 
Key key_
 

Member Typedef Documentation

◆ Buffer

template<typename Key , typename Value , uint32_t size>
using helper::cache::policy::Lru::Algorithm< Key, Value, size >::Buffer = container::CycleBufferArray<Key, size>

Member Function Documentation

◆ access()

template<typename Key , typename Value , uint32_t size>
void helper::cache::policy::Lru::Algorithm< Key, Value, size >::access ( const Key  key)
inline

◆ get_container()

template<typename Key , typename Value , uint32_t size>
const Buffer & helper::cache::policy::Lru::Algorithm< Key, Value, size >::get_container ( ) const
inline

◆ pop()

template<typename Key , typename Value , uint32_t size>
Key * helper::cache::policy::Lru::Algorithm< Key, Value, size >::pop ( )
inline

◆ push()

template<typename Key , typename Value , uint32_t size>
void helper::cache::policy::Lru::Algorithm< Key, Value, size >::push ( const Key  key,
Key **  out_key = nullptr 
)
inline

◆ remove()

template<typename Key , typename Value , uint32_t size>
void helper::cache::policy::Lru::Algorithm< Key, Value, size >::remove ( const Key  key)
inline

Member Data Documentation

◆ buffer_

template<typename Key , typename Value , uint32_t size>
Buffer helper::cache::policy::Lru::Algorithm< Key, Value, size >::buffer_
private

◆ key_

template<typename Key , typename Value , uint32_t size>
Key helper::cache::policy::Lru::Algorithm< Key, Value, size >::key_
private

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