diff options
author | Vladimir Byko-Ianko <v.bykoianko@corp.mail.ru> | 2019-05-14 17:49:50 +0300 |
---|---|---|
committer | Tatiana Yan <tatiana.kondakova@gmail.com> | 2019-05-15 11:33:44 +0300 |
commit | d535b63e7c17b7dfb69bf60c9463b09718ccd8df (patch) | |
tree | 7cdb1fadb35926c7fda1792af2252e2bda5561c0 /routing | |
parent | 243151201f4bd40fee1d11fe18804afc35892e51 (diff) |
Adding method clear to IDirectionsEngine interface.
Diffstat (limited to 'routing')
-rw-r--r-- | routing/bicycle_directions.cpp | 5 | ||||
-rw-r--r-- | routing/bicycle_directions.hpp | 1 | ||||
-rw-r--r-- | routing/directions_engine.hpp | 1 |
3 files changed, 7 insertions, 0 deletions
diff --git a/routing/bicycle_directions.cpp b/routing/bicycle_directions.cpp index e1bb23a1bb..cbb2f1d433 100644 --- a/routing/bicycle_directions.cpp +++ b/routing/bicycle_directions.cpp @@ -211,6 +211,11 @@ bool BicycleDirectionsEngine::Generate(IndexRoadGraph const & graph, vector<Junc return true; } +void BicycleDirectionsEngine::Clear() +{ + m_loader.reset(); +} + FeaturesLoaderGuard & BicycleDirectionsEngine::GetLoader(MwmSet::MwmId const & id) { if (!m_loader || id != m_loader->GetId()) diff --git a/routing/bicycle_directions.hpp b/routing/bicycle_directions.hpp index 8071984233..06c8d12cb0 100644 --- a/routing/bicycle_directions.hpp +++ b/routing/bicycle_directions.hpp @@ -35,6 +35,7 @@ public: base::Cancellable const & cancellable, Route::TTurns & turns, Route::TStreets & streetNames, vector<Junction> & routeGeometry, vector<Segment> & segments) override; + void Clear() override; private: FeaturesLoaderGuard & GetLoader(MwmSet::MwmId const & id); diff --git a/routing/directions_engine.hpp b/routing/directions_engine.hpp index e2b2a2f2c0..460821b9d0 100644 --- a/routing/directions_engine.hpp +++ b/routing/directions_engine.hpp @@ -27,5 +27,6 @@ public: base::Cancellable const & cancellable, Route::TTurns & turns, Route::TStreets & streetNames, vector<Junction> & routeGeometry, vector<Segment> & segments) = 0; + virtual void Clear() = 0; }; } // namespace routing |