Loki  0.1.7
 All Classes Namespaces Files Functions Variables Typedefs Friends Macros Groups
Loki::EvictLRU< DT, ST > Class Template Referenceabstract

Evicts least accessed objects first. More...

#include <CachedFactory.h>

Inherits Loki::EvictionHelper< ST, DT >.

Detailed Description

template<typename DT, typename ST = unsigned>
class Loki::EvictLRU< DT, ST >

Evicts least accessed objects first.

Implementation of the Least recent used algorithm as described in http://en.wikipedia.org/wiki/Page_replacement_algorithms .

WARNING : If an object is heavily fetched (more than ULONG_MAX = UINT_MAX = 4294967295U) it could unfortunately be removed from the cache.


The documentation for this class was generated from the following file: