Libosmium
2.9.0
Fast and flexible C++ library for working with OpenStreetMap data
|
#include <tag.hpp>
Public Types | |
using | size_type = size_t |
![]() | |
using | iterator = CollectionIterator< Tag > |
using | const_iterator = CollectionIterator< const Tag > |
using | value_type = Tag |
Public Member Functions | |
TagList () | |
size_type | size () const noexcept |
const char * | get_value_by_key (const char *key, const char *default_value=nullptr) const noexcept |
const char * | operator[] (const char *key) const noexcept |
bool | has_key (const char *key) const noexcept |
bool | has_tag (const char *key, const char *value) const noexcept |
![]() | |
Collection () | |
bool | empty () const |
iterator | begin () |
const_iterator | begin () const |
iterator | end () |
const_iterator | end () const |
const_iterator | cbegin () const |
const_iterator | cend () const |
![]() | |
unsigned char * | next () noexcept |
const unsigned char * | next () const noexcept |
item_size_type | byte_size () const noexcept |
item_size_type | padded_size () const |
item_type | type () const noexcept |
bool | removed () const noexcept |
void | set_removed (bool removed) noexcept |
diff_indicator_type | diff () const noexcept |
char | diff_as_char () const noexcept |
void | set_diff (diff_indicator_type diff) noexcept |
Private Member Functions | |
const_iterator | find_key (const char *key) const noexcept |
Additional Inherited Members | |
![]() | |
static constexpr osmium::item_type | itemtype |
![]() | |
Item (item_size_type size=0, item_type type=item_type()) noexcept | |
Item (const Item &)=delete | |
Item (Item &&)=delete | |
Item & | operator= (const Item &)=delete |
Item & | operator= (Item &&)=delete |
Item & | set_type (const item_type item_type) noexcept |
using osmium::TagList::size_type = size_t |
|
inline |
|
inlineprivatenoexcept |
|
inlinenoexcept |
Get tag value for the given tag key. If the key is not set, returns the default_value.
|
inlinenoexcept |
Returns true if the tag with the given key is in the tag list.
|
inlinenoexcept |
Returns true if the tag with the given key and value is in the tag list.
|
inlinenoexcept |
Get tag value for the given tag key. If the key is not set, returns nullptr.
|
inlinenoexcept |
Returns the number of tags in this tag list.