diff options
author | Vladimir Byko-Ianko <v.bykoianko@corp.mail.ru> | 2016-05-25 18:44:08 +0300 |
---|---|---|
committer | Vladimir Byko-Ianko <v.bykoianko@corp.mail.ru> | 2016-05-27 14:17:14 +0300 |
commit | 36c26c63894dfe127d5d3ecf521e9d6a17bf20f5 (patch) | |
tree | e30be006f03c9d64e762cbd47a817139bd4ff7ca /pedestrian_routing_tests | |
parent | 6361f1f99a6415e528101e87433a227a42be6297 (diff) |
git-clang-format
Diffstat (limited to 'pedestrian_routing_tests')
-rw-r--r-- | pedestrian_routing_tests/pedestrian_routing_tests.cpp | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/pedestrian_routing_tests/pedestrian_routing_tests.cpp b/pedestrian_routing_tests/pedestrian_routing_tests.cpp index 1921f03bf1..d7733240f7 100644 --- a/pedestrian_routing_tests/pedestrian_routing_tests.cpp +++ b/pedestrian_routing_tests/pedestrian_routing_tests.cpp @@ -94,9 +94,9 @@ unique_ptr<routing::IRouter> CreatePedestrianAStarTestRouter(Index & index, stor auto UKGetter = [&](m2::PointD const & pt) { return cig.GetRegionCountryId(pt); }; unique_ptr<routing::IVehicleModelFactory> vehicleModelFactory(new SimplifiedPedestrianModelFactory()); unique_ptr<routing::IRoutingAlgorithm> algorithm(new routing::AStarRoutingAlgorithm()); - unique_ptr<routing::IRouter> router(new routing::RoadGraphRouter("test-astar-pedestrian", index, UKGetter, - true /* onewayAsBidirectional */, - move(vehicleModelFactory), move(algorithm), nullptr)); + unique_ptr<routing::IRouter> router(new routing::RoadGraphRouter( + "test-astar-pedestrian", index, UKGetter, true /* onewayAsBidirectional */, + move(vehicleModelFactory), move(algorithm), nullptr)); return router; } @@ -105,9 +105,9 @@ unique_ptr<routing::IRouter> CreatePedestrianAStarBidirectionalTestRouter(Index auto UKGetter = [&](m2::PointD const & pt) { return cig.GetRegionCountryId(pt); }; unique_ptr<routing::IVehicleModelFactory> vehicleModelFactory(new SimplifiedPedestrianModelFactory()); unique_ptr<routing::IRoutingAlgorithm> algorithm(new routing::AStarBidirectionalRoutingAlgorithm()); - unique_ptr<routing::IRouter> router(new routing::RoadGraphRouter("test-astar-bidirectional-pedestrian", index, UKGetter, - true /* onewayAsBidirectional */, - move(vehicleModelFactory), move(algorithm), nullptr)); + unique_ptr<routing::IRouter> router(new routing::RoadGraphRouter( + "test-astar-bidirectional-pedestrian", index, UKGetter, true /* onewayAsBidirectional */, + move(vehicleModelFactory), move(algorithm), nullptr)); return router; } @@ -124,7 +124,8 @@ m2::PointD GetPointOnEdge(routing::Edge & e, double posAlong) void GetNearestPedestrianEdges(Index & index, m2::PointD const & pt, vector<pair<routing::Edge, m2::PointD>> & edges) { unique_ptr<routing::IVehicleModelFactory> vehicleModelFactory(new SimplifiedPedestrianModelFactory()); - routing::FeaturesRoadGraph roadGraph(index, true /* onewayAsBidirectional */, move(vehicleModelFactory)); + routing::FeaturesRoadGraph roadGraph(index, true /* onewayAsBidirectional */, + move(vehicleModelFactory)); roadGraph.FindClosestEdges(pt, 1 /*count*/, edges); } |