CrystalSpace

Public API Reference

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

Specialized pseudo-LRU for set size 4. More...

#include <csutil/fixedsizecache.h>

List of all members.

Public Member Functions

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

Detailed Description

template<>
class CS::Utility::Implementation::FixedSizePseudoLRU< 4 >

Specialized pseudo-LRU for set size 4.

Use direct bit-patterns instead of generic tree algorithm.

Definition at line 609 of file fixedsizecache.h.


Member Function Documentation

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

Return last recently used item.

Definition at line 639 of file fixedsizecache.h.

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

Set index as last accessed.

Definition at line 617 of file fixedsizecache.h.


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

Generated for Crystal Space 2.1 by doxygen 1.6.1