Generic hash implementation (for easy migration to the new Hash class).
More...
#include </scratch/z5/marcocle/lhcb-release/419/GAUDI/GAUDI_v26r1/InstallArea/x86_64-slc6-gcc48-opt/include/GaudiKernel/Hash.h>
|
| std::size_t | operator() (const T &key) const |
| | the generic hash function
|
| |
| std::size_t | operator() (const T &key) const |
| | the generic hash function
|
| |
template<class T>
struct GaudiUtils::GenericHash< T >
Generic hash implementation (for easy migration to the new Hash class).
Definition at line 30 of file Hash.h.
the generic hash function
Definition at line 34 of file Hash.h.
{
std::size_t res = 0 ;
std::size_t len = sizeof(T) ;
const char* p = reinterpret_cast<const char*>( &key );
while( len-- ) { res = ( res << 1 ) ^ *p; ++p; }
return res;
}
the generic hash function
Definition at line 34 of file Hash.h.
{
std::size_t res = 0 ;
std::size_t len = sizeof(T) ;
const char* p = reinterpret_cast<const char*>( &key );
while( len-- ) { res = ( res << 1 ) ^ *p; ++p; }
return res;
}
The documentation for this struct was generated from the following files:
- InstallArea/x86_64-slc6-gcc48-opt/include/GaudiKernel/Hash.h
- InstallArea/x86_64-slc6-gcc48-opt/include/GaudiKernel/Hash.h