HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
UT_CappedKey Class Referenceabstract

Base class for search keys for UT_CappedCache. More...

#include <UT_CappedCache.h>

+ Inheritance diagram for UT_CappedKey:

Public Member Functions

 UT_CappedKey ()
 
virtual ~UT_CappedKey ()
 
virtual UT_CappedKeyduplicate () const =0
 The duplicate() method should return a copy of the key. More...
 
virtual unsigned int getHash () const =0
 Return a hash for the key. More...
 
virtual bool isEqual (const UT_CappedKey &key) const =0
 Test equality. More...
 
- Public Member Functions inherited from UT_IntrusiveRefCounter< UT_CappedKey >
SYS_FORCE_INLINE UT_IntrusiveRefCounter ()
 Default constructor: Sets counter to 0. More...
 
SYS_FORCE_INLINE UT_IntrusiveRefCounter (const UT_IntrusiveRefCounter &)
 Copy constructor: Sets counter to 0. More...
 
UT_IntrusiveRefCounteroperator= (const UT_IntrusiveRefCounter &)
 Assignment operator: Does not modify counter. More...
 
SYS_FORCE_INLINE uint32 use_count () const
 Return current counter. More...
 

Additional Inherited Members

- Protected Member Functions inherited from UT_IntrusiveRefCounter< UT_CappedKey >
SYS_FORCE_INLINE ~UT_IntrusiveRefCounter ()
 Destructor: Only derived classes can destruct this. More...
 

Detailed Description

Base class for search keys for UT_CappedCache.

Definition at line 28 of file UT_CappedCache.h.

Constructor & Destructor Documentation

UT_CappedKey::UT_CappedKey ( )
virtual UT_CappedKey::~UT_CappedKey ( )
virtual

Member Function Documentation

virtual UT_CappedKey* UT_CappedKey::duplicate ( ) const
pure virtual

The duplicate() method should return a copy of the key.

Implemented in UT_LocalDiskCacheKey.

virtual unsigned int UT_CappedKey::getHash ( ) const
pure virtual

Return a hash for the key.

Implemented in UT_LocalDiskCacheKey.

virtual bool UT_CappedKey::isEqual ( const UT_CappedKey key) const
pure virtual

Test equality.

Implemented in UT_LocalDiskCacheKey.


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