diff options
author | Maxim Pimenov <m@maps.me> | 2016-01-15 14:57:38 +0300 |
---|---|---|
committer | Sergey Yershov <yershov@corp.mail.ru> | 2016-03-23 16:16:02 +0300 |
commit | 5c9ac0e04484c80dc099d45330c317f7a83465f8 (patch) | |
tree | 274d1d14efc9b8d5c3848d6cebf907666b56a748 /indexer/ftypes_matcher.hpp | |
parent | 9e09ffcc6a3acf4182e26819cb2e76480e148fee (diff) |
[search] Added villages.
Diffstat (limited to 'indexer/ftypes_matcher.hpp')
-rw-r--r-- | indexer/ftypes_matcher.hpp | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/indexer/ftypes_matcher.hpp b/indexer/ftypes_matcher.hpp index 4cb7af9eed..400ef14499 100644 --- a/indexer/ftypes_matcher.hpp +++ b/indexer/ftypes_matcher.hpp @@ -84,6 +84,20 @@ public: static IsStreetChecker const & Instance(); }; +class IsVillageChecker : public BaseChecker +{ +public: + IsVillageChecker(); + + template <typename TFn> + void ForEachType(TFn && fn) const + { + for_each(m_types.cbegin(), m_types.cend(), forward<TFn>(fn)); + } + + static IsVillageChecker const & Instance(); +}; + class IsOneWayChecker : public BaseChecker { IsOneWayChecker(); |