MCPcopy Create free account
hub / github.com/Geant4/geant4 / MakeHash

Function MakeHash

source/visualization/Vtk/src/G4VtkUtility.cc:86–97  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

84
85
86std::size_t MakeHash(const G4ThreeVector &v)
87{
88
89 std::size_t xhash = std::hash<G4double>{}(v.x());
90 std::size_t yhash = std::hash<G4double>{}(v.y());
91 std::size_t zhash = std::hash<G4double>{}(v.z());
92
93 std::hash_combine(xhash, yhash);
94 std::hash_combine(yhash, zhash);
95
96 return xhash;
97}
98
99std::size_t MakeHash(const G4Colour &c)
100{

Callers 9

AddPrimitiveMethod · 0.85
AddPrimitiveSeparateMethod · 0.85
AddPrimitiveAppendMethod · 0.85
AddSolidMethod · 0.85
GetSDMethod · 0.85
GetIDMethod · 0.85
PutMethod · 0.85

Calls 8

xMethod · 0.80
yMethod · 0.80
zMethod · 0.80
GetRedMethod · 0.80
GetGreenMethod · 0.80
GetBlueMethod · 0.80
hash_combineFunction · 0.50
GetAlphaMethod · 0.45

Tested by

no test coverage detected