23 #ifndef __ccxx_StaticCache_hxx 24 #define __ccxx_StaticCache_hxx 72 virtual T*
get(
const K& key);
100 virtual bool loadItem(
const K& key, T* item) = 0;
110 #include <ccxx/StaticCacheImpl.h++> 114 #endif // __ccxx_StaticCache_hxx virtual T * constructItem()=0
Construct a new cache item.
virtual void clear()
Remove all items from the cache.
unsigned int uint_t
An alias for unsigned int.
Definition: Integers.h++:74
An abstract base class for a general-purpose LRU-cache with a maximum capacity.
Definition: AbstractCache.h++:46
virtual bool loadItem(const K &key, T *item)=0
Called by get() when the cache does not contain an item with the requested key.
virtual ~StaticCache()
Destructor.
StaticCache(uint_t maxSize)
Construct a new StaticCache with the given maximum size.
Definition: AllocationMap.c++:25
An LRU cache implementation in which cache objects are recycled when they are removed from the cache...
Definition: StaticCache.h++:46