The Gaudi Framework  v41r0 (bdbe7744)
Loading...
Searching...
No Matches
GaudiUtils::Hash< T * > Struct Template Reference

the partial specialization for pointers More...

#include </builds/gaudi/Gaudi/GaudiKernel/include/GaudiKernel/Hash.h>

Inheritance diagram for GaudiUtils::Hash< T * >:

Public Member Functions

std::size_t operator() (const T *key) const
 the hash-function
std::size_t operator() (const char *key) const
 (very)specific for C-strings

Detailed Description

template<class T>
struct GaudiUtils::Hash< T * >

the partial specialization for pointers

Definition at line 99 of file Hash.h.

Member Function Documentation

◆ operator()() [1/2]

std::size_t GaudiUtils::Hash< char * >::operator() ( const char * key) const
inline

(very)specific for C-strings

Definition at line 141 of file Hash.h.

141 {
142 std::size_t seed = 0;
143 while ( key ) {
145 ++key;
146 }
147 return seed;
148 }
Simple hash function.
Definition Hash.h:93

◆ operator()() [2/2]

template<class T>
std::size_t GaudiUtils::Hash< T * >::operator() ( const T * key) const
inline

the hash-function

the generic implementation of hash for pointers

Definition at line 135 of file Hash.h.

135 {
136 using namespace boost;
137 return hash_value( key );
138 }

The documentation for this struct was generated from the following file:
  • GaudiKernel/include/GaudiKernel/Hash.h