CrystalSpace

Public API Reference

CS::Utility::Implementation::FixedSizePseudoLRU< Size > Class Template Reference

LRU policy using the tree/pseudo-LRU algorithm for general power-of-two sized sets. More...

#include <csutil/fixedsizecache.h>

List of all members.

Public Member Functions

 FixedSizePseudoLRU ()
 Initialize.
size_t GetVictim () const
 Return last recently used item.
void Update (size_t index)
 Set index as last accessed.

Detailed Description

template<size_t Size>
class CS::Utility::Implementation::FixedSizePseudoLRU< Size >

LRU policy using the tree/pseudo-LRU algorithm for general power-of-two sized sets.

Parameters:
Size number of elements in set

Definition at line 503 of file fixedsizecache.h.


Constructor & Destructor Documentation

template<size_t Size>
CS::Utility::Implementation::FixedSizePseudoLRU< Size >::FixedSizePseudoLRU (  )  [inline]

Initialize.

Definition at line 507 of file fixedsizecache.h.


Member Function Documentation

template<size_t Size>
size_t CS::Utility::Implementation::FixedSizePseudoLRU< Size >::GetVictim (  )  const [inline]

Return last recently used item.

Definition at line 544 of file fixedsizecache.h.

template<size_t Size>
void CS::Utility::Implementation::FixedSizePseudoLRU< Size >::Update ( size_t  index  )  [inline]

Set index as last accessed.

Definition at line 516 of file fixedsizecache.h.


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

Generated for Crystal Space 2.0 by doxygen 1.6.1