1 #ifndef GAUDIKERNEL_HASH_H 2 #define GAUDIKERNEL_HASH_H 1 12 #include "boost/functional/hash.hpp" 35 const char* p =
reinterpret_cast<const char*
>( &key );
36 while( len-- ) { res = ( res << 1 ) ^ *p; ++p; }
115 template <
class T,
unsigned N>
121 {
return boost::hash_range ( key , key + N ) ; }
125 template <
class T,
unsigned N>
131 {
return boost::hash_range ( key , key + N ) ; }
152 using namespace boost ;
159 using namespace boost ;
167 while ( key ) { boost::hash_combine ( seed , *key ) ; ++key ; }
176 #endif // GAUDIKERNEL_HASH_H The namespace threadpool contains a thread pool and related utility classes.
std::size_t hash_value(const Gaudi::StringKey &key)
hash-function: heeded for boost::hash
the partial specialization for pointers
Generic hash implementation (for easy migration to the new Hash class).
std::size_t operator()(const T &key) const
the generic hash function
std::size_t operator()(const T &key) const
the hash-function
Forward declarations for the functions in SerializeSTL.h.