|
Electroneum
|
#include <lfu_cache_policy.hpp>


Public Types | |
| using | lfu_iterator = typename std::multimap< std::size_t, Key >::iterator |
Public Member Functions | |
| LFUCachePolicy ()=default | |
| ~LFUCachePolicy () override=default | |
| void | Insert (const Key &key) override |
| void | Touch (const Key &key) override |
| void | Erase (const Key &key) override |
| const Key & | ReplCandidate () const override |
| void | Clear () override |
Public Member Functions inherited from caches::ICachePolicy< Key > | |
| virtual | ~ICachePolicy () |
Private Attributes | |
| std::multimap< std::size_t, Key > | frequency_storage |
| std::unordered_map< Key, lfu_iterator > | lfu_storage |
| using caches::LFUCachePolicy< Key >::lfu_iterator = typename std::multimap<std::size_t, Key>::iterator |
|
default |
|
overridedefault |
|
inlineoverridevirtual |
Implements caches::ICachePolicy< Key >.
|
inlineoverridevirtual |
Implements caches::ICachePolicy< Key >.
|
inlineoverridevirtual |
Implements caches::ICachePolicy< Key >.
|
inlineoverridevirtual |
Implements caches::ICachePolicy< Key >.
|
inlineoverridevirtual |
Implements caches::ICachePolicy< Key >.
|
private |
|
private |
1.8.14