diff options
author | Alex Zolotarev <alex@maps.me> | 2016-01-13 17:53:46 +0300 |
---|---|---|
committer | Sergey Yershov <yershov@corp.mail.ru> | 2016-03-23 16:04:46 +0300 |
commit | 0525cb790915d8d0149d90c8cb21a7bd46db102e (patch) | |
tree | 3b7bf009cc8eed12448cd3f4b3859baa90d10f7c /indexer/ftypes_matcher.cpp | |
parent | 2d218600dd68d841b51e0717ff0601db81219fcb (diff) |
Convenient feature types matcher.
Diffstat (limited to 'indexer/ftypes_matcher.cpp')
-rw-r--r-- | indexer/ftypes_matcher.cpp | 5 |
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(); |