diff options
author | Sergey Magidovich <mgsergio@mapswithme.com> | 2016-10-24 15:15:36 +0300 |
---|---|---|
committer | Sergey Magidovich <mgsergio@mapswithme.com> | 2017-01-31 10:43:14 +0300 |
commit | 3e6df70ac10b8e10dd15199fa16bfdd54c6ee1f4 (patch) | |
tree | b8e1d157a64a02d6f304cd4e1eb6ba9eda7b2667 /indexer/index.hpp | |
parent | 13090e8c57c6191e64eb85c72be5315af46cabba (diff) |
OpenLR decoding, markup tool.
Diffstat (limited to 'indexer/index.hpp')
-rw-r--r-- | indexer/index.hpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/indexer/index.hpp b/indexer/index.hpp index 3f43d2b707..077dc5bdf9 100644 --- a/indexer/index.hpp +++ b/indexer/index.hpp @@ -208,21 +208,21 @@ private: public: template <typename F> - void ForEachInRect(F & f, m2::RectD const & rect, uint32_t scale) const + void ForEachInRect(F && f, m2::RectD const & rect, uint32_t scale) const { ReadMWMFunctor<F> implFunctor(f); ForEachInIntervals(implFunctor, covering::ViewportWithLowLevels, rect, scale); } template <typename F> - void ForEachFeatureIDInRect(F & f, m2::RectD const & rect, uint32_t scale) const + void ForEachFeatureIDInRect(F && f, m2::RectD const & rect, uint32_t scale) const { ReadFeatureIndexFunctor<F> implFunctor(f); ForEachInIntervals(implFunctor, covering::LowLevelsOnly, rect, scale); } template <typename F> - void ForEachInScale(F & f, uint32_t scale) const + void ForEachInScale(F && f, uint32_t scale) const { ReadMWMFunctor<F> implFunctor(f); ForEachInIntervals(implFunctor, covering::FullCover, m2::RectD::GetInfiniteRect(), scale); @@ -230,7 +230,7 @@ public: // "features" must be sorted using FeatureID::operator< as predicate. template <typename F> - void ReadFeatures(F & f, vector<FeatureID> const & features) const + void ReadFeatures(F && f, vector<FeatureID> const & features) const { auto fidIter = features.begin(); auto const endIter = features.end(); @@ -297,7 +297,7 @@ public: }; template <typename F> - void ForEachInRectForMWM(F & f, m2::RectD const & rect, uint32_t scale, MwmId const & id) const + void ForEachInRectForMWM(F && f, m2::RectD const & rect, uint32_t scale, MwmId const & id) const { MwmHandle const handle = GetMwmHandleById(id); if (handle.IsAlive()) @@ -311,7 +311,7 @@ public: private: template <typename F> - void ForEachInIntervals(F & f, covering::CoveringMode mode, m2::RectD const & rect, + void ForEachInIntervals(F && f, covering::CoveringMode mode, m2::RectD const & rect, uint32_t scale) const { vector<shared_ptr<MwmInfo>> mwms; |