MiniOB 1
MiniOB is one mini database, helping developers to learn how database works.
载入中...
搜索中...
未找到
| Public 成员函数 | Private 类型 | Private 成员函数 | Private 属性 | 所有成员列表
common::LruCache< Key, Value, Hash, Pred > 模板类 参考

class  ListNode
 
class  PListNodeHasher
 
class  PListNodePredicator
 

Public 成员函数

 LruCache (size_t reserve=0)
 
void destroy ()
 
size_t count () const
 
bool get (const Key &key, Value &value)
 
void put (const Key &key, const Value &value)
 
void remove (const Key &key)
 
void pop (Value *&value)
 
void foreach (function< bool(const Key &, const Value &)> func)
 
void foreach_reverse (function< bool(const Key &, const Value &)> func)
 

Private 类型

using SearchType = unordered_set< ListNode *, PListNodeHasher, PListNodePredicator >
 

Private 成员函数

void lru_touch (ListNode *node)
 
void lru_push (ListNode *node)
 
void lru_remove (ListNode *node)
 

Private 属性

SearchType searcher_
 
ListNodelru_front_ = nullptr
 
ListNodelru_tail_ = nullptr
 

该类的文档由以下文件生成: