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)
 
virtual ~GusdUT_CappedKey ()
 
virtual UT_CappedKeyduplicate () const
 The duplicate() method should return a copy of the key. More...
 
virtual unsigned getHash () const
 Return a hash for the key. More...
 
virtual bool isEqual (const UT_CappedKey &key) const
 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 ()
 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

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>>
virtual GusdUT_CappedKey< KeyT, HashCompare >::~GusdUT_CappedKey ( )
inlinevirtual

Definition at line 53 of file UT_CappedCache.h.

Member Function Documentation

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

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>>
virtual unsigned GusdUT_CappedKey< KeyT, HashCompare >::getHash ( ) const
inlinevirtual

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>>
virtual bool GusdUT_CappedKey< KeyT, HashCompare >::isEqual ( const UT_CappedKey key) const
inlinevirtual

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* ( void  )
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* ( void  ) 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-> ( void  )
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-> ( void  ) const
inline

Definition at line 69 of file UT_CappedCache.h.


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