Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mapsme/omim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYuri Gorshenin <y@maps.me>2016-10-06 22:25:34 +0300
committerYuri Gorshenin <y@maps.me>2016-10-11 17:58:27 +0300
commitda69d602c568846235657a843b30c17a672320e1 (patch)
treeab172257367d683031241c75e6f95aeb3813e7f4 /indexer/ftypes_matcher.hpp
parent09566c5ca7aa761a40b0e769e4e44b85c5c3f429 (diff)
[search] Implemented hotels filter.
Diffstat (limited to 'indexer/ftypes_matcher.hpp')
-rw-r--r--indexer/ftypes_matcher.hpp18
1 files changed, 6 insertions, 12 deletions
diff --git a/indexer/ftypes_matcher.hpp b/indexer/ftypes_matcher.hpp
index 2e8fd6bc3e..17d1e77665 100644
--- a/indexer/ftypes_matcher.hpp
+++ b/indexer/ftypes_matcher.hpp
@@ -32,6 +32,12 @@ public:
bool operator() (vector<uint32_t> const & types) const;
static uint32_t PrepareToMatch(uint32_t type, uint8_t level);
+
+ template <typename TFn>
+ void ForEachType(TFn && fn) const
+ {
+ for_each(m_types.cbegin(), m_types.cend(), forward<TFn>(fn));
+ }
};
class IsPeakChecker : public BaseChecker
@@ -73,12 +79,6 @@ class IsStreetChecker : public BaseChecker
{
IsStreetChecker();
public:
- template <typename TFn>
- void ForEachType(TFn && fn) const
- {
- for_each(m_types.cbegin(), m_types.cend(), forward<TFn>(fn));
- }
-
static IsStreetChecker const & Instance();
};
@@ -94,12 +94,6 @@ class IsVillageChecker : public BaseChecker
IsVillageChecker();
public:
- template <typename TFn>
- void ForEachType(TFn && fn) const
- {
- for_each(m_types.cbegin(), m_types.cend(), forward<TFn>(fn));
- }
-
static IsVillageChecker const & Instance();
};