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

Method GetTwinFeature

libs/routing/cross_mwm_graph.cpp:188–203  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

186}
187
188void CrossMwmGraph::GetTwinFeature(Segment const & segment, bool isOutgoing, vector<Segment> & twins)
189{
190 m_crossMwmIndexGraph.ForEachTransitSegmentId(segment.GetMwmId(), segment.GetFeatureId(),
191 [&](uint32_t transitSegmentId)
192 {
193 Segment const transitSegment(segment.GetMwmId(), segment.GetFeatureId(), transitSegmentId, segment.IsForward());
194
195 if (IsTransition(transitSegment, isOutgoing))
196 {
197 // Get twins and exit.
198 GetTwins(transitSegment, isOutgoing, twins);
199 return true;
200 }
201 return false;
202 });
203}
204
205CrossMwmGraph::MwmStatus CrossMwmGraph::GetMwmStatus(NumMwmId numMwmId, string const & sectionName) const
206{

Callers 1

Calls 4

GetMwmIdMethod · 0.45
GetFeatureIdMethod · 0.45
IsForwardMethod · 0.45

Tested by

no test coverage detected