Functions ---------------------------------------------------------------------------------------
| 417 | |
| 418 | // Functions --------------------------------------------------------------------------------------- |
| 419 | unique_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 | |
| 430 | unique_ptr<IndexGraph> BuildIndexGraph(unique_ptr<TestGeometryLoader> geometryLoader, |
| 431 | shared_ptr<EdgeEstimator> estimator, vector<Joint> const & joints) |