23 #ifndef __ccxx_DynamicCache_hxx 24 #define __ccxx_DynamicCache_hxx 70 void put(K key, T* item);
81 virtual T*
get(
const K& key);
91 T*
take(
const K& key);
100 bool remove(
const K& key);
122 #include <commonc++/DynamicCacheImpl.h++> 126 #endif // __ccxx_DynamicCache_hxx T * take(const K &key)
Remove an item from the cache, and return the item.
unsigned int uint_t
An alias for unsigned int.
Definition: Integers.h++:74
virtual T * loadItem(const K &key)
Called by get() when the cache does not contain an item with the requested key.
An abstract base class for a general-purpose LRU-cache with a maximum capacity.
Definition: AbstractCache.h++:46
DynamicCache(uint_t maxSize)
Construct a new DynamicCache with the given maximum size.
void put(K key, T *item)
Put an item in the cache.
Definition: AllocationMap.c++:25
An LRU cache implementation in which cache objects are deleted when they are removed from the cache...
Definition: DynamicCache.h++:46
virtual ~DynamicCache()
Destructor.