HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups 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 () noexcept
 Default constructor: Sets counter to 0. More...
 
SYS_FORCE_INLINE UT_IntrusiveRefCounter (const UT_IntrusiveRefCounter &) noexcept
 Copy constructor: Sets counter to 0. More...
 
UT_IntrusiveRefCounteroperator= (const UT_IntrusiveRefCounter &) noexcept
 Assignment operator: Does not modify counter. More...
 
SYS_FORCE_INLINE uint32 use_count () const noexcept
 Return current counter. More...
 
SYS_FORCE_INLINE bool conditionalAddRef () noexcept
 

Protected Member Functions

 UT_CappedKey (const UT_CappedKey &)=default
 
UT_CappedKeyoperator= (const UT_CappedKey &)=delete
 
- 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
UT_CappedKey::UT_CappedKey ( const UT_CappedKey )
protecteddefault

Member Function Documentation

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

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

Implemented in GusdUT_CappedKey< KeyT, HashCompare >, and UT_LocalDiskCacheKey.

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

Return a hash for the key.

Implemented in GusdUT_CappedKey< KeyT, HashCompare >, and UT_LocalDiskCacheKey.

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

Test equality.

Implemented in GusdUT_CappedKey< KeyT, HashCompare >, and UT_LocalDiskCacheKey.

UT_CappedKey& UT_CappedKey::operator= ( const UT_CappedKey )
protecteddelete

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