| VRS - The Virtual Rendering System |
| version 3.3 |
#include <vrs/container/lrumap.h>

Public Member Functions | |
| UINT | size () const |
| Returns the number of key-value-pairs in the map. | |
| bool | isEmpty () const |
| Returns if the map is empty. | |
| bool | contains (const KEY &key) const |
| Returns if the given key is contained in the map. | |
| const KEY & | frontKey () const |
| const VALUE & | frontValue () const |
| const KEY & | backKey () const |
| const VALUE & | backValue () const |
| const VALUE & | value (const KEY &key) const |
| void | pushFront (const KEY &key, const VALUE &value) |
| void | pushFront (const KEY &key) |
| void | popBack () |
| void | clear () |
| Removes all key-value-pairs from the list. | |
| void | erase (const KEY &key) |
| VRS_TYPEINFO (LRUMap, SharedObj) | |
| UINT VRS::LRUMap< KEY, VALUE >::size | ( | ) | const |
Returns the number of key-value-pairs in the map.
| bool VRS::LRUMap< KEY, VALUE >::isEmpty | ( | ) | const |
Returns if the map is empty.
| bool VRS::LRUMap< KEY, VALUE >::contains | ( | const KEY & | key | ) | const |
Returns if the given key is contained in the map.
| const KEY& VRS::LRUMap< KEY, VALUE >::frontKey | ( | ) | const |
Returns the first key in the map (the key of the key-value-pairs that has been used most recently.)
| const VALUE& VRS::LRUMap< KEY, VALUE >::frontValue | ( | ) | const |
Returns the first value in the map (the value of the key-value-pairs that has been used most recently.)
| const KEY& VRS::LRUMap< KEY, VALUE >::backKey | ( | ) | const |
Returns the last key in the list (the key of the key-value-pair that has not been used for the longest time of all pairs in the lru map).
| const VALUE& VRS::LRUMap< KEY, VALUE >::backValue | ( | ) | const |
Returns the last value in the list (the value of the key-value-pair that has not been used for the longest time of all pairs in the lru map).
| const VALUE& VRS::LRUMap< KEY, VALUE >::value | ( | const KEY & | key | ) | const |
Returns the value associated with the given key. Note: the given key must be contained in the lru map!
| void VRS::LRUMap< KEY, VALUE >::pushFront | ( | const KEY & | key, | |
| const VALUE & | value | |||
| ) |
Associates the given value with the given key (releasing a possible association of the given key with another value) and pushes the key-value-pair to the front of the lru map (meaning using the pair).
| void VRS::LRUMap< KEY, VALUE >::pushFront | ( | const KEY & | key | ) |
Pushes the given key (together with the associated value) to the front of the lru map (meaning using the pair). Note: the given key must be contained in the lru map!
| void VRS::LRUMap< KEY, VALUE >::popBack | ( | ) |
Removes the key-value-pair from the map that has not been used for the longest time of all contained pairs.
| void VRS::LRUMap< KEY, VALUE >::clear | ( | ) |
Removes all key-value-pairs from the list.
| void VRS::LRUMap< KEY, VALUE >::erase | ( | const KEY & | key | ) |
If the given key is contained in the map it it removed from the map together with the associated value.
| VRS::LRUMap< KEY, VALUE >::VRS_TYPEINFO | ( | LRUMap< KEY, VALUE > | , | |
| SharedObj | ||||
| ) |