Libosmium
2.20.0
Fast and flexible C++ library for working with OpenStreetMap data
|
#include <matcher.hpp>
Public Member Functions | |
TagMatcher () | |
bool | has_value_matcher () const noexcept |
template<typename TKey , typename X = typename std::enable_if< std::is_convertible<TKey, osmium::StringMatcher>::value, void>::type> | |
TagMatcher (TKey &&key_matcher) | |
template<typename TKey , typename TValue , typename std::enable_if< std::is_convertible< TKey, osmium::StringMatcher >::value, int >::type = 0, typename std::enable_if< std::is_convertible< TValue, osmium::StringMatcher >::value, int >::type = 0> | |
TagMatcher (TKey &&key_matcher, TValue &&value_matcher, bool invert=false) | |
bool | operator() (const char *key, const char *value) const noexcept |
bool | operator() (const osmium::Tag &tag) const noexcept |
bool | operator() (const osmium::TagList &tags) const noexcept |
Private Attributes | |
osmium::StringMatcher | m_key_matcher |
osmium::StringMatcher | m_value_matcher |
bool | m_has_value_matcher = false |
bool | m_result = true |
Compares a tags key (and value) against the specified StringMatchers.
|
inline |
Create a default TagMatcher that matches no tags.
|
inlineexplicit |
Create a TagMatcher matching the key against the specified StringMatcher.
key_matcher | StringMatcher for matching the key. |
|
inline |
Create a TagMatcher matching the key and value against the specified StringMatchers.
key_matcher | StringMatcher for matching the key. |
value_matcher | StringMatcher for matching the value. |
invert | If set to true, invert the result of the value_matcher. |
|
inlinenoexcept |
|
inlinenoexcept |
Match against the specified key and value.
|
inlinenoexcept |
Match against the specified tag.
|
inlinenoexcept |
Match against the specified tags.
|
private |
|
private |
|
private |
|
private |