|
kwave
18.07.70
|
#include <LRU_Cache.h>


Public Member Functions | |
| LRU_Cache () | |
| virtual | ~LRU_Cache () |
| bool | isEmpty () const |
| const DATA & | operator[] (const IDX index) const |
| DATA & | operator[] (const IDX index) |
| bool | contains (const IDX index) const |
| void | remove (const IDX index) |
| void | insert (const IDX index, DATA &value) |
| QList< IDX > | keys () const |
| QList< DATA > | values () const |
Private Types | |
| typedef QPair< IDX, DATA > | Pair |
Definition at line 30 of file LRU_Cache.h.
|
private |
internal typedef for the QPair
Definition at line 35 of file LRU_Cache.h.
|
inline |
|
inlinevirtual |
|
inline |
checks whether an index is contained
| index | the index (key) of the element to look up |
Definition at line 97 of file LRU_Cache.h.
|
inline |
insert a new entry to the start of the list (newest)
| index | the index (key) of the element to insert |
| value | the data of the element to insert |
Definition at line 129 of file LRU_Cache.h.
Referenced by Kwave::LRU_Cache< Kwave::Handle, Kwave::MemoryManager::physical_memory_t >::operator[]().

|
inline |
returns true if the cache is empty
Definition at line 50 of file LRU_Cache.h.
|
inline |
|
inline |
|
inline |
|
inline |
remove an entry
| index | the index (key) of the element to remove |
Definition at line 110 of file LRU_Cache.h.
|
inline |