- CS
- Utility
- Implementation
- FixedSizeCacheElement
![]() |
Public API Reference |
![]() |
Represent one element in the cache with key and data. More...
#include <csutil/fixedsizecache.h>
Public Member Functions | |
const T & | GetData () const |
Get current value of the data. | |
const K & | GetKey () const |
Get current value of the key. | |
void | InvalidateData () |
Invalidate the data. | |
void | InvalidateKey () |
Invalidate the key. | |
void | SetData (const T &t) |
Set the data item, assuming its invalid. | |
void | SetKey (const K &k) |
Set key, assuming its invalid. |
Represent one element in the cache with key and data.
The element can be in one of three states:
However, for efficiency reasons it does not keep track of its current state, that must be done by the user.
Definition at line 46 of file fixedsizecache.h.
const T& CS::Utility::Implementation::FixedSizeCacheElement< K, T >::GetData | ( | ) | const [inline] |
Get current value of the data.
Definition at line 74 of file fixedsizecache.h.
const K& CS::Utility::Implementation::FixedSizeCacheElement< K, T >::GetKey | ( | ) | const [inline] |
Get current value of the key.
Definition at line 56 of file fixedsizecache.h.
void CS::Utility::Implementation::FixedSizeCacheElement< K, T >::InvalidateData | ( | ) | [inline] |
Invalidate the data.
Definition at line 80 of file fixedsizecache.h.
void CS::Utility::Implementation::FixedSizeCacheElement< K, T >::InvalidateKey | ( | ) | [inline] |
Invalidate the key.
Definition at line 62 of file fixedsizecache.h.
void CS::Utility::Implementation::FixedSizeCacheElement< K, T >::SetData | ( | const T & | t | ) | [inline] |
Set the data item, assuming its invalid.
Definition at line 68 of file fixedsizecache.h.
void CS::Utility::Implementation::FixedSizeCacheElement< K, T >::SetKey | ( | const K & | k | ) | [inline] |
Set key, assuming its invalid.
Definition at line 50 of file fixedsizecache.h.