HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
GusdUT_CappedKey< KeyT, HashCompare > Class Template Reference

#include <UT_CappedCache.h>

+ Inheritance diagram for GusdUT_CappedKey< KeyT, HashCompare >:

Public Member Functions

 GusdUT_CappedKey ()
 
 GusdUT_CappedKey (const KeyT &key)
 
 ~GusdUT_CappedKey () override
 
UT_CappedKeyduplicate () const override
 The duplicate() method should return a copy of the key. More...
 
unsigned getHash () const override
 Return a hash for the key. More...
 
bool isEqual (const UT_CappedKey &key) const override
 Test equality. More...
 
KeyT * operator-> ()
 
const KeyT * operator-> () const
 
KeyT & operator* ()
 
const KeyT & operator* () const
 
- Public Member Functions inherited from UT_CappedKey
 UT_CappedKey ()
 
virtual ~UT_CappedKey ()
 
- 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
 

Additional Inherited Members

- Protected Member Functions inherited from UT_CappedKey
 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

template<typename KeyT, typename HashCompare = tbb::tbb_hash_compare<KeyT>>
class GusdUT_CappedKey< KeyT, HashCompare >

Convenience wrapper around UT_CappedKey. This allows keys to be constructed in TBB's style. These can only be used in a UT_CappedCache if all keys in the cache have the same type.

Definition at line 47 of file UT_CappedCache.h.

Constructor & Destructor Documentation

template<typename KeyT , typename HashCompare = tbb::tbb_hash_compare<KeyT>>
GusdUT_CappedKey< KeyT, HashCompare >::GusdUT_CappedKey ( )
inline

Definition at line 50 of file UT_CappedCache.h.

template<typename KeyT , typename HashCompare = tbb::tbb_hash_compare<KeyT>>
GusdUT_CappedKey< KeyT, HashCompare >::GusdUT_CappedKey ( const KeyT &  key)
inline

Definition at line 51 of file UT_CappedCache.h.

template<typename KeyT , typename HashCompare = tbb::tbb_hash_compare<KeyT>>
GusdUT_CappedKey< KeyT, HashCompare >::~GusdUT_CappedKey ( )
inlineoverride

Definition at line 53 of file UT_CappedCache.h.

Member Function Documentation

template<typename KeyT , typename HashCompare = tbb::tbb_hash_compare<KeyT>>
UT_CappedKey* GusdUT_CappedKey< KeyT, HashCompare >::duplicate ( ) const
inlineoverridevirtual

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

Implements UT_CappedKey.

Definition at line 55 of file UT_CappedCache.h.

template<typename KeyT , typename HashCompare = tbb::tbb_hash_compare<KeyT>>
unsigned GusdUT_CappedKey< KeyT, HashCompare >::getHash ( ) const
inlineoverridevirtual

Return a hash for the key.

Implements UT_CappedKey.

Definition at line 58 of file UT_CappedCache.h.

template<typename KeyT , typename HashCompare = tbb::tbb_hash_compare<KeyT>>
bool GusdUT_CappedKey< KeyT, HashCompare >::isEqual ( const UT_CappedKey key) const
inlineoverridevirtual

Test equality.

Implements UT_CappedKey.

Definition at line 61 of file UT_CappedCache.h.

template<typename KeyT , typename HashCompare = tbb::tbb_hash_compare<KeyT>>
KeyT& GusdUT_CappedKey< KeyT, HashCompare >::operator* ( )
inline

Definition at line 70 of file UT_CappedCache.h.

template<typename KeyT , typename HashCompare = tbb::tbb_hash_compare<KeyT>>
const KeyT& GusdUT_CappedKey< KeyT, HashCompare >::operator* ( ) const
inline

Definition at line 71 of file UT_CappedCache.h.

template<typename KeyT , typename HashCompare = tbb::tbb_hash_compare<KeyT>>
KeyT* GusdUT_CappedKey< KeyT, HashCompare >::operator-> ( )
inline

Definition at line 68 of file UT_CappedCache.h.

template<typename KeyT , typename HashCompare = tbb::tbb_hash_compare<KeyT>>
const KeyT* GusdUT_CappedKey< KeyT, HashCompare >::operator-> ( ) const
inline

Definition at line 69 of file UT_CappedCache.h.


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