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

Class FactorIDSet

include/FactorIDSet.h:44–64  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

42 typedef ceres::ResidualBlockId CeresFactorID;
43
44 class FactorIDSet : public DataSet<FactorType, CeresFactorID>
45 {
46 public:
47 FactorIDSet() {};
48 ~FactorIDSet() {};
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 };
65
66 typedef FactorIDSet::UniqueID FactorID;
67

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected