|
TTK
|
LRU cache implementation. More...
#include <Cache.h>
Public Member Functions | |
| LRUCache () | |
| LRUCache (const std::size_t capacity) | |
| bool | empty () const |
| std::size_t | capacity () const |
| std::size_t | size () const |
| bool | contains (const KeyType &key) const |
| void | clear () |
| void | insert (const KeyType &key, const ValueType &value) |
| Insert new (key, value) entry. | |
| ValueType * | get (const KeyType &key) |
| Get value pointer from key. | |
LRU cache implementation.
Adapted from boost/compute/details/lru_cache.hpp
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |