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

Method PrepareIndexGraph

libs/routing/routing_tests/index_graph_tools.cpp:338–351  ·  view source on GitHub ↗

TestIndexGraphTopology::Builder -----------------------------------------------------------------

Source from the content-addressed store, hash-verified

336
337// TestIndexGraphTopology::Builder -----------------------------------------------------------------
338unique_ptr<SingleVehicleWorldGraph> TestIndexGraphTopology::Builder::PrepareIndexGraph()
339{
340 auto loader = make_unique<ZeroGeometryLoader>();
341 auto estimator = make_shared<WeightedEdgeEstimator>(m_segmentWeights);
342
343 BuildJoints();
344
345 auto worldGraph = BuildWorldGraph(std::move(loader), estimator, m_joints);
346 auto & indexGraph = worldGraph->GetIndexGraphForTests(kTestNumMwmId);
347 if (m_currentTimeGetter)
348 indexGraph.SetCurrentTimeGetter(m_currentTimeGetter);
349 indexGraph.SetRoadAccess(std::move(m_roadAccess));
350 return worldGraph;
351}
352
353void TestIndexGraphTopology::Builder::BuildJoints()
354{

Callers 1

FindPathMethod · 0.80

Calls 3

BuildWorldGraphFunction · 0.85
SetRoadAccessMethod · 0.80
SetCurrentTimeGetterMethod · 0.45

Tested by

no test coverage detected