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

Method GetEdgeList

libs/routing/single_vehicle_world_graph.cpp:85–99  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

83}
84
85void SingleVehicleWorldGraph::GetEdgeList(astar::VertexData<Segment, RouteWeight> const & vertexData, bool isOutgoing,
86 bool useRoutingOptions, bool useAccessConditional, SegmentEdgeListT & edges)
87{
88 CHECK_NOT_EQUAL(m_mode, WorldGraphMode::LeapsOnly, ());
89
90 ASSERT(m_parentsForSegments.forward && m_parentsForSegments.backward,
91 ("m_parentsForSegments was not initialized in SingleVehicleWorldGraph."));
92 auto const & segment = vertexData.m_vertex;
93 auto & parents = isOutgoing ? *m_parentsForSegments.forward : *m_parentsForSegments.backward;
94 IndexGraph & indexGraph = m_loader->GetIndexGraph(segment.GetMwmId());
95 indexGraph.GetEdgeList(vertexData, isOutgoing, useRoutingOptions, edges, parents);
96
97 if (m_mode != WorldGraphMode::SingleMwm && m_crossMwmGraph && m_crossMwmGraph->IsTransition(segment, isOutgoing))
98 GetTwins(segment, isOutgoing, useRoutingOptions, edges);
99}
100
101void SingleVehicleWorldGraph::GetEdgeList(astar::VertexData<JointSegment, RouteWeight> const & parentVertexData,
102 Segment const & parent, bool isOutgoing, bool useAccessConditional,

Callers

nothing calls this directly

Calls 5

ASSERTFunction · 0.85
GetMwmIdMethod · 0.45
IsTransitionMethod · 0.45
IsRealSegmentMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected