#include <storage.hh>
Public Member Functions | |
DepthCache (std::size_t depth, KEY min) | |
DATA * | find (KEY key) |
DATA * | find_nolock (KEY key) |
void | insert (KEY key, DATA *data) |
void | insert_nolock (KEY key, DATA *data) |
utility::Mutex & | mutex () |
void | remove (KEY key) |
void | remove_nolock (KEY key) |
~DepthCache () | |
Private Types | |
typedef std::map< KEY, DATA * > | MapType |
Private Member Functions | |
DATA * | find_ (KEY key) |
void | insert_ (KEY key, DATA *data) |
void | pop_oldest_ () |
void | remove_ (KEY key) |
Private Attributes | |
const std::size_t | m_depth |
utility::Mutex | m_lock |
MapType | m_map |
const KEY | m_minimum |
Definition at line 131 of file storage.hh.
|
private |
Definition at line 177 of file storage.hh.
|
inline |
Definition at line 134 of file storage.hh.
|
inline |
Definition at line 138 of file storage.hh.
|
inline |
Definition at line 156 of file storage.hh.
|
inlineprivate |
Definition at line 183 of file storage.hh.
|
inline |
Definition at line 152 of file storage.hh.
|
inline |
Definition at line 165 of file storage.hh.
|
inlineprivate |
Definition at line 192 of file storage.hh.
|
inline |
Definition at line 161 of file storage.hh.
|
inline |
Definition at line 148 of file storage.hh.
|
inlineprivate |
Definition at line 207 of file storage.hh.
|
inline |
Definition at line 174 of file storage.hh.
|
inlineprivate |
Definition at line 199 of file storage.hh.
|
inline |
Definition at line 170 of file storage.hh.
|
private |
Definition at line 213 of file storage.hh.
|
private |
Definition at line 219 of file storage.hh.
|
private |
Definition at line 218 of file storage.hh.
|
private |
Definition at line 216 of file storage.hh.