CS::Utility::Implementation::FixedSizeLRU< Size > Class Template Reference
LRU implemented as a fixed size array storing the indices in order of reference. More...
#include <csutil/fixedsizecache.h>
Public Member Functions | |
| FixedSizeLRU () | |
| Initialize the LRU array. | |
| 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::FixedSizeLRU< Size >
LRU implemented as a fixed size array storing the indices in order of reference.
Performs best for relatively small sizes.
- Parameters:
-
Size LRU size
Definition at line 406 of file fixedsizecache.h.
Constructor & Destructor Documentation
template<size_t Size>
| CS::Utility::Implementation::FixedSizeLRU< Size >::FixedSizeLRU | ( | ) | [inline] |
Initialize the LRU array.
Definition at line 410 of file fixedsizecache.h.
Member Function Documentation
template<size_t Size>
| size_t CS::Utility::Implementation::FixedSizeLRU< Size >::GetVictim | ( | ) | const [inline] |
Return last recently used item.
Definition at line 436 of file fixedsizecache.h.
template<size_t Size>
| void CS::Utility::Implementation::FixedSizeLRU< Size >::Update | ( | size_t | index | ) | [inline] |
Set index as last accessed.
Definition at line 419 of file fixedsizecache.h.
The documentation for this class was generated from the following file:
- csutil/fixedsizecache.h
Generated for Crystal Space 2.1 by doxygen 1.6.1
