RobWorkProject  23.9.11-
Public Member Functions | List of all members
FileCache< KEY, VAL, STAMP_T > Class Template Reference

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
 

Detailed Description

template<class KEY, class VAL, class STAMP_T>
class rw::common::FileCache< KEY, VAL, STAMP_T >

a cache that use a timestamp in combination with a key to determine the uniqueness of an item in the cache.


The documentation for this class was generated from the following file: