|
Libosmium
2.22.0
Fast and flexible C++ library for working with OpenStreetMap data
|
#include <filter.hpp>

Classes | |
| struct | Rule |
Public Types | |
| using | filter_type = Filter<TKey, TValue, TKeyComp, TValueComp> |
| using | argument_type = const osmium::Tag& |
| using | result_type = bool |
| using | iterator = osmium::memory::CollectionFilterIterator<filter_type, const osmium::Tag> |
Public Member Functions | |
| Filter (bool default_result=false) | |
| template<typename V = TValue, typename std::enable_if_t<!std::is_void< V >::value, int > = 0> | |
| Filter & | add (bool result, const key_type &key, const value_type &value) |
| Filter & | add (bool result, const key_type &key) |
| bool | operator() (const osmium::Tag &tag) const |
| size_t | count () const noexcept |
| bool | empty () const noexcept |
Private Types | |
| using | key_type = TKey |
| using | value_type = std::conditional_t<std::is_void<TValue>::value, bool, TValue> |
Private Attributes | |
| std::vector< Rule > | m_rules |
| bool | m_default_result |
| using osmium::tags::Filter< TKey, TValue, TKeyComp, TValueComp >::argument_type = const osmium::Tag& |
| using osmium::tags::Filter< TKey, TValue, TKeyComp, TValueComp >::filter_type = Filter<TKey, TValue, TKeyComp, TValueComp> |
| using osmium::tags::Filter< TKey, TValue, TKeyComp, TValueComp >::iterator = osmium::memory::CollectionFilterIterator<filter_type, const osmium::Tag> |
|
private |
| using osmium::tags::Filter< TKey, TValue, TKeyComp, TValueComp >::result_type = bool |
|
private |
|
inlineexplicit |
|
inline |
|
inline |
|
inlinenoexcept |
Return the number of rules in this filter.
Complexity: Constant.
|
inlinenoexcept |
Is this filter empty, ie are there no rules defined?
Complexity: Constant.
|
inline |
|
private |
|
private |