Geant4 11.4.0
Toolkit for the simulation of the passage of particles through matter
Loading...
Searching...
No Matches
std::hash< G4FermiNucleiData > Struct Reference

#include <G4FermiDataTypes.hh>

Public Member Functions

std::size_t operator() (const G4FermiNucleiData &key) const

Detailed Description

Definition at line 147 of file G4FermiDataTypes.hh.

Member Function Documentation

◆ operator()()

std::size_t std::hash< G4FermiNucleiData >::operator() ( const G4FermiNucleiData & key) const
inline

Definition at line 149 of file G4FermiDataTypes.hh.

150 {
151 auto mass = G4int(key.atomicMass);
152 auto charge = G4int(key.chargeNumber);
153 return (mass * (mass + 1)) / 2 + charge;
154 }
int G4int
Definition G4Types.hh:85
G4FermiChargeNumber chargeNumber
G4FermiAtomicMass atomicMass

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