diff options
author | Vladimir Byko-Ianko <v.bykoianko@corp.mail.ru> | 2016-09-07 15:53:41 +0300 |
---|---|---|
committer | Vladimir Byko-Ianko <v.bykoianko@corp.mail.ru> | 2016-09-08 12:49:56 +0300 |
commit | f29e63de51933e526c5a4cfc41945180ee11c961 (patch) | |
tree | 2f779ef1aabd5b6a1e490fd7de8a2bb0ea542876 /routing/routing_session.hpp | |
parent | af4c0e975c2a942c82841be4e3a43e8bc7ccc581 (diff) |
Review fixes.
Diffstat (limited to 'routing/routing_session.hpp')
-rw-r--r-- | routing/routing_session.hpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/routing/routing_session.hpp b/routing/routing_session.hpp index a15b50a6f0..9156ab53ae 100644 --- a/routing/routing_session.hpp +++ b/routing/routing_session.hpp @@ -15,7 +15,6 @@ #include "base/mutex.hpp" #include "std/atomic.hpp" -#include "std/deque.hpp" #include "std/limits.hpp" #include "std/unique_ptr.hpp" @@ -106,15 +105,15 @@ public: inline void SetState(State state) { m_state = state; } Route const & GetRoute() const { return m_route; } - /// \returns true if any altitude information along |m_route| is available and + /// \returns true if altitude information along |m_route| is available and /// false otherwise. bool HasRouteAltitude() const; /// \brief copies route altitude information to |routeAltitudes| if any is available and - /// returns true. If no route altitude information is available returns false. + /// returns true. If there's no navigation route, the method returns false. bool GetRouteAltitudes(feature::TAltitudes & routeAltitudes) const; /// \brief copies distance from route beginning to ends of route segments in meters and /// returns true. If the route is not valid returns false. - bool GetSegDistanceM(deque<double> & routeSegDistanceM) const; + bool GetSegDistanceM(vector<double> & routeSegDistanceM) const; State OnLocationPositionChanged(location::GpsInfo const & info, Index const & index); void GetRouteFollowingInfo(location::FollowingInfo & info) const; @@ -148,7 +147,6 @@ public: double GetCompletionPercent() const; void EmitCloseRoutingEvent() const; - bool HasRouteAltitudeImpl() const; private: struct DoReadyCallback @@ -176,6 +174,8 @@ private: void RemoveRoute(); void RemoveRouteImpl(); + bool HasRouteAltitudeImpl() const; + private: unique_ptr<AsyncRouter> m_router; Route m_route; |