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:
authorAlex Zolotarev <alex@maps.me>2016-01-13 17:53:46 +0300
committerSergey Yershov <yershov@corp.mail.ru>2016-03-23 16:04:46 +0300
commit0525cb790915d8d0149d90c8cb21a7bd46db102e (patch)
tree3b7bf009cc8eed12448cd3f4b3859baa90d10f7c /indexer/ftypes_matcher.cpp
parent2d218600dd68d841b51e0717ff0601db81219fcb (diff)
Convenient feature types matcher.
Diffstat (limited to 'indexer/ftypes_matcher.cpp')
-rw-r--r--indexer/ftypes_matcher.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/indexer/ftypes_matcher.cpp b/indexer/ftypes_matcher.cpp
index 6067857465..968062f41a 100644
--- a/indexer/ftypes_matcher.cpp
+++ b/indexer/ftypes_matcher.cpp
@@ -45,6 +45,11 @@ bool BaseChecker::operator() (vector<uint32_t> const & types) const
return false;
}
+bool BaseChecker::HasTypeValue(uint32_t const type) const
+{
+ return find(m_types.begin(), m_types.end(), type) != m_types.end();
+}
+
IsPeakChecker::IsPeakChecker()
{
Classificator const & c = classif();