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

Method GetEdgeListImpl

libs/routing/index_graph.cpp:92–110  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

90}
91
92void IndexGraph::GetEdgeListImpl(astar::VertexData<Segment, RouteWeight> const & vertexData, bool isOutgoing,
93 bool useRoutingOptions, bool useAccessConditional, SegmentEdgeListT & edges,
94 Parents<Segment> const & parents) const
95{
96 auto const & segment = vertexData.m_vertex;
97
98 RoadPoint const roadPoint = segment.GetRoadPoint(isOutgoing);
99 Joint::Id const jointId = m_roadIndex.GetJointId(roadPoint);
100
101 if (jointId != Joint::kInvalidId)
102 {
103 m_jointIndex.ForEachPoint(jointId, [&](RoadPoint const & rp)
104 { GetNeighboringEdges(vertexData, rp, isOutgoing, useRoutingOptions, edges, parents, useAccessConditional); });
105 }
106 else
107 {
108 GetNeighboringEdges(vertexData, roadPoint, isOutgoing, useRoutingOptions, edges, parents, useAccessConditional);
109 }
110}
111
112void IndexGraph::GetLastPointsForJoint(SegmentListT const & children, bool isOutgoing, PointIdListT & lastPoints) const
113{

Callers

nothing calls this directly

Calls 3

GetRoadPointMethod · 0.80
GetJointIdMethod · 0.45
ForEachPointMethod · 0.45

Tested by

no test coverage detected