1 #ifndef OSMIUM_TAGS_TAGS_FILTER_HPP 2 #define OSMIUM_TAGS_TAGS_FILTER_HPP 39 #include <boost/iterator/filter_iterator.hpp> 67 template <
typename TResult>
70 std::vector<std::pair<TResult, TagMatcher>>
m_rules;
75 using iterator = boost::filter_iterator<TagsFilterBase, osmium::TagList::const_iterator>;
103 m_rules.emplace_back(result, matcher);
115 template <
typename... TArgs>
129 for (
const auto& rule :
m_rules) {
130 if (rule.second(tag)) {
142 std::size_t
count() const noexcept {
162 #endif // OSMIUM_TAGS_TAGS_FILTER_HPP
Namespace for everything in the Osmium library.
Definition: assembler.hpp:53
Definition: matcher.hpp:47