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

#include <tlb.hpp>

Public Member Functions

 tlb ()
 
 tlb (Key invalid_key, Entry invalid_entry)
 
void add (const Key &key, const Entry &entry)
 
Entry get (const Key &key)
 
template<typename Fn >
Entry get (Fn fn)
 
void clear ()
 

Static Public Attributes

constexpr static bool enabled = NEntries > 0
 

Constructor & Destructor Documentation

◆ tlb() [1/2]

template<typename Key , typename Entry , int NEntries = 3>
ityr::ori::tlb< Key, Entry, NEntries >::tlb ( )
inline

◆ tlb() [2/2]

template<typename Key , typename Entry , int NEntries = 3>
ityr::ori::tlb< Key, Entry, NEntries >::tlb ( Key  invalid_key,
Entry  invalid_entry 
)
inline

Member Function Documentation

◆ add()

template<typename Key , typename Entry , int NEntries = 3>
void ityr::ori::tlb< Key, Entry, NEntries >::add ( const Key &  key,
const Entry &  entry 
)
inline

◆ clear()

template<typename Key , typename Entry , int NEntries = 3>
void ityr::ori::tlb< Key, Entry, NEntries >::clear ( )
inline

◆ get() [1/2]

template<typename Key , typename Entry , int NEntries = 3>
Entry ityr::ori::tlb< Key, Entry, NEntries >::get ( const Key &  key)
inline

◆ get() [2/2]

template<typename Key , typename Entry , int NEntries = 3>
template<typename Fn >
Entry ityr::ori::tlb< Key, Entry, NEntries >::get ( Fn  fn)
inline

Member Data Documentation

◆ enabled

template<typename Key , typename Entry , int NEntries = 3>
constexpr static bool ityr::ori::tlb< Key, Entry, NEntries >::enabled = NEntries > 0
staticconstexpr

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