Namespace caches#
-
namespace caches
Typedefs
-
template<typename T>
class DequeCache Subclassed by caches::FIFOCache< T >, caches::LIFOCache< T >
Public Functions
-
explicit DequeCache(size_t limit = 100)
-
virtual ~DequeCache() = default
-
virtual T next() const = 0
-
virtual T last() const = 0
-
virtual void push(T value) = 0
-
virtual void pop() = 0
-
virtual std::vector<T> slice(size_t width) const = 0
-
std::deque<T>::iterator begin()
-
std::deque<T>::iterator end()
-
std::deque<T>::const_iterator begin() const
-
std::deque<T>::const_iterator end() const
-
size_t size() const
-
size_t space() const
-
bool empty() const
-
explicit DequeCache(size_t limit = 100)
-
template<typename T>
class FIFOCache : public caches::DequeCache<T>
-
template<typename T>
class LIFOCache : public caches::DequeCache<T>
-
template<typename K, typename V>
class LRUCache Public Functions
-
explicit LRUCache(size_t limit = 100)
-
size_t size() const
-
size_t space() const
-
bool contains(const K &key) const
-
explicit LRUCache(size_t limit = 100)
-
template<typename T>