Loki::EvictLRU< DT, ST > Class Template Reference
[Eviction policies]

Evicts least accessed objects first. More...

#include <CachedFactory.h>

Inheritance diagram for Loki::EvictLRU< DT, ST >:

[legend]
Collaboration diagram for Loki::EvictLRU< DT, ST >:
[legend]
List of all members.

Protected Member Functions

virtual ~EvictLRU ()
void onCreate (const DT &key)
void onFetch (const DT &)
void onRelease (const DT &key)
void onDestroy (const DT &key)
void evict ()
const char * name ()

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.

Definition at line 351 of file CachedFactory.h.


The documentation for this class was generated from the following file:
Generated on Sun Feb 25 16:52:34 2007 for Loki by  doxygen 1.5.1-p1