The Gaudi Framework  v41r0 (bdbe7744)
Loading...
Searching...
No Matches
GaudiUtils::Hash< Gaudi::ParticleID & > Struct Reference

#include </builds/gaudi/Gaudi/GaudiPartProp/include/Gaudi/ParticleID.h>

Public Member Functions

size_t operator() (const Gaudi::ParticleID &s) const
std::size_t operator() (const char *key) const
 (very)specific for C-strings

Detailed Description

Definition at line 181 of file ParticleID.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]

size_t GaudiUtils::Hash< Gaudi::ParticleID & >::operator() ( const Gaudi::ParticleID & s) const
inline

Definition at line 182 of file ParticleID.h.

182{ return (size_t)s.pid(); }

The documentation for this struct was generated from the following files: