MCPcopy Create free account
hub / github.com/comaps/comaps / operator()

Method operator()

libs/routing/features_road_graph.cpp:127–138  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

125 {}
126
127 void operator()(FeatureType & ft)
128 {
129 if (!m_graph.IsRoad(ft))
130 return;
131
132 FeatureID const & featureId = ft.GetID();
133
134 IRoadGraph::RoadInfo const & roadInfo = m_graph.GetCachedRoadInfo(featureId, ft, kInvalidSpeedKMPH);
135 CHECK_EQUAL(roadInfo.m_speedKMPH, kInvalidSpeedKMPH, ());
136
137 m_edgesLoader(featureId, roadInfo.m_junctions, roadInfo.m_bidirectional);
138 }
139
140private:
141 FeaturesRoadGraphBase const & m_graph;

Callers

nothing calls this directly

Calls 2

IsRoadMethod · 0.45
GetIDMethod · 0.45

Tested by

no test coverage detected