UT_LimitedCacheKey Class Reference

Key class - used to query or add objects to the limited cache. More...

#include <UT_LimitedCache.h>

Inheritance diagram for UT_LimitedCacheKey:

UT_LocalDiskCacheKey

List of all members.

Public Member Functions

 UT_LimitedCacheKey ()
virtual ~UT_LimitedCacheKey ()
virtual UT_LimitedCacheKeyduplicate () 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)


Detailed Description

Key class - used to query or add objects to the limited 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.


Constructor & Destructor Documentation

UT_LimitedCacheKey::UT_LimitedCacheKey (  ) 

virtual UT_LimitedCacheKey::~UT_LimitedCacheKey (  )  [virtual]


Member Function Documentation

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]

Return a duplicate new key.

Implemented in UT_LocalDiskCacheKey.

virtual unsigned UT_LimitedCacheKey::getHash (  )  const [pure virtual]

Return a hash for the key.

Implemented in UT_LocalDiskCacheKey.

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]

Comparison between another key.

Implemented in UT_LocalDiskCacheKey.


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

Generated on Mon Jan 28 00:30:11 2013 for HDK by  doxygen 1.5.9