RobWorkProject
24.12.4-
|
a cache that use a timestamp in combination with a key to determine the uniqueness of an item in the cache. More...
#include <FileCache.hpp>
Public Member Functions | |
FileCache () | |
default constructor | |
virtual | ~FileCache () |
default destructor | |
bool | isInCache (const KEY &id, const STAMP_T &stamp) |
Tests whether a key is present in the cache. | |
bool | has (const KEY &id, const STAMP_T &stamp) |
tests if the key id is in the cache | |
rw::core::Ptr< VAL > | get (const KEY &key) |
gets the value that is associated with the key | |
void | add (const KEY &key, VAL *val, const STAMP_T &stamp) |
Ads a value to a key that was aquired at some specific time. | |
void | add (const KEY &key, rw::core::Ptr< VAL > val, const STAMP_T &stamp) |
Ads a value to a key that was aquired at some specific time. | |
void | remove (const KEY &key) |
remove all values-key pairs that match key | |
void | clear () |
clear all value-key pairs from this Cache | |
a cache that use a timestamp in combination with a key to determine the uniqueness of an item in the cache.