MCPcopy Create free account
hub / github.com/TUC-ProAut/libRSF / HashGlobalID

Class HashGlobalID

include/FactorIDSet.h:51–61  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

49
50 /** specialized hash for FactorType enum */
51 struct HashGlobalID
52 {
53 size_t operator() (const UniqueID &Object) const
54 {
55 size_t H1 = std::hash<size_t>()(static_cast<size_t>(Object.ID));
56 size_t H2 = std::hash<double>()(roundToTick(Object.Timestamp));
57 size_t H3 = std::hash<size_t>()(Object.Number);
58
59 return H1 ^ H2 ^ H3;
60 }
61 };
62
63 using DataSet<FactorType, CeresFactorID>::addElement;
64 };

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected