MCPcopy Create free account
hub / github.com/comaps/comaps / Hash

Class Hash

libs/routing/road_point.hpp:38–47  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

36 bool operator!=(RoadPoint const & rp) const { return !(*this == rp); }
37
38 struct Hash
39 {
40 size_t operator()(RoadPoint const & roadPoint) const
41 {
42 size_t seed = 0;
43 boost::hash_combine(seed, roadPoint.m_featureId);
44 boost::hash_combine(seed, roadPoint.m_pointId);
45 return seed;
46 }
47 };
48
49 void SetPointId(uint32_t pointId) { m_pointId = pointId; }
50

Callers 2

SerializeMethod · 0.70
DeserializeMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected