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

Method GetSegmentCandidateForJoint

libs/routing/index_graph.cpp:298–308  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

296}
297
298void IndexGraph::GetSegmentCandidateForJoint(Segment const & parent, bool isOutgoing, SegmentListT & children) const
299{
300 RoadPoint const roadPoint = parent.GetRoadPoint(isOutgoing);
301 Joint::Id const jointId = m_roadIndex.GetJointId(roadPoint);
302
303 if (jointId == Joint::kInvalidId)
304 return;
305
306 m_jointIndex.ForEachPoint(jointId, [&](RoadPoint const & rp)
307 { GetSegmentCandidateForRoadPoint(rp, parent.GetMwmId(), isOutgoing, children); });
308}
309
310/// \brief Prolongs segments from |parent| to |firstChildren| directions in order to
311/// create JointSegments.

Callers

nothing calls this directly

Calls 4

GetRoadPointMethod · 0.80
GetJointIdMethod · 0.45
ForEachPointMethod · 0.45
GetMwmIdMethod · 0.45

Tested by

no test coverage detected