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

Function BuildWorldGraph

libs/routing/routing_tests/index_graph_tools.cpp:419–428  ·  view source on GitHub ↗

Functions ---------------------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

417
418// Functions ---------------------------------------------------------------------------------------
419unique_ptr<SingleVehicleWorldGraph> BuildWorldGraph(unique_ptr<TestGeometryLoader> geometryLoader,
420 shared_ptr<EdgeEstimator> estimator, vector<Joint> const & joints)
421{
422 auto graph = make_unique<IndexGraph>(make_shared<Geometry>(std::move(geometryLoader)), estimator);
423 graph->Import(joints);
424 auto indexLoader = make_unique<TestIndexGraphLoader>();
425 indexLoader->AddGraph(kTestNumMwmId, std::move(graph));
426 return make_unique<SingleVehicleWorldGraph>(nullptr /* crossMwmGraph */, std::move(indexLoader), estimator,
427 MwmHierarchyHandler());
428}
429
430unique_ptr<IndexGraph> BuildIndexGraph(unique_ptr<TestGeometryLoader> geometryLoader,
431 shared_ptr<EdgeEstimator> estimator, vector<Joint> const & joints)

Callers 15

BuildXXGraphFunction · 0.85
UNIT_TESTFunction · 0.85
BuildLoopGraphFunction · 0.85
PrepareIndexGraphMethod · 0.85
BuildXYGraphFunction · 0.85
BuildXXGraphFunction · 0.85
BuildCubeGraphFunction · 0.85
BuildTriangularGraphFunction · 0.85
BuildTwowayCornerGraphFunction · 0.85
BuildTwoSquaresGraphFunction · 0.85
BuildFlagGraphFunction · 0.85
BuildPosterGraphFunction · 0.85

Calls 5

MwmHierarchyHandlerClass · 0.85
MakeGateEndingsFunction · 0.85
AddGraphMethod · 0.80
ImportMethod · 0.45
FillMethod · 0.45

Tested by 15

BuildXXGraphFunction · 0.68
UNIT_TESTFunction · 0.68
BuildLoopGraphFunction · 0.68
BuildXYGraphFunction · 0.68
BuildXXGraphFunction · 0.68
BuildCubeGraphFunction · 0.68
BuildTriangularGraphFunction · 0.68
BuildTwowayCornerGraphFunction · 0.68
BuildTwoSquaresGraphFunction · 0.68
BuildFlagGraphFunction · 0.68
BuildPosterGraphFunction · 0.68
BuildTwoWayGraphFunction · 0.68