#include <UT_LimitedCache.h>

Public Member Functions | |
| UT_LimitedCacheKey () | |
| virtual | ~UT_LimitedCacheKey () |
| virtual UT_LimitedCacheKey * | duplicate () const =0 |
| Return a duplicate new key. | |
| virtual unsigned | getHash () const =0 |
| Return a hash for the key. | |
| virtual bool | isEqual (const UT_LimitedCacheKey &key) const =0 |
| Comparison between another key. | |
| virtual int64 | getTotalMemory () const =0 |
| virtual int64 | allocate (void *) |
| virtual void | deallocate (void *cache) |
The key object is used to lookup UT_LimitedCacheItem objects. The key is stored in the LRU cache and thus, must conform to the requirements of the LRU Cache Item
Definition at line 39 of file UT_LimitedCache.h.
| UT_LimitedCacheKey::UT_LimitedCacheKey | ( | ) |
| virtual UT_LimitedCacheKey::~UT_LimitedCacheKey | ( | ) | [virtual] |
| virtual int64 UT_LimitedCacheKey::allocate | ( | void * | ) | [inline, virtual] |
API for the LRU cache item
Definition at line 62 of file UT_LimitedCache.h.
| virtual void UT_LimitedCacheKey::deallocate | ( | void * | cache | ) | [virtual] |
API for the LRU cache item
| virtual UT_LimitedCacheKey* UT_LimitedCacheKey::duplicate | ( | ) | const [pure virtual] |
| virtual unsigned UT_LimitedCacheKey::getHash | ( | ) | const [pure virtual] |
| virtual int64 UT_LimitedCacheKey::getTotalMemory | ( | ) | const [pure virtual] |
Return the memory size of the the key object and the size of an item object. i.e.
return sizeof(UT_LimitedCacheKey) + sizeof(UT_LimitedCacheItem);
| virtual bool UT_LimitedCacheKey::isEqual | ( | const UT_LimitedCacheKey & | key | ) | const [pure virtual] |
1.5.9