Libosmium
2.15.1
Fast and flexible C++ library for working with OpenStreetMap data
|
Go to the documentation of this file. 1 #ifndef OSMIUM_OSM_RELATION_HPP
2 #define OSMIUM_OSM_RELATION_HPP
51 template <
typename TDerived,
typename T>
52 class OSMObjectBuilder;
54 class RelationMemberListBuilder;
70 const unsigned char*
endpos()
const {
74 template <
typename TMember>
84 const unsigned char*
next()
const {
140 const char*
role() const noexcept {
160 t == osmium::item_type::relation_member_list_with_full_members;
170 template <
typename TDerived,
typename T>
187 return osmium::detail::subitem_of_type<RelationMemberList>(
begin(),
end());
192 return osmium::detail::subitem_of_type<const RelationMemberList>(
cbegin(),
cend());
197 return osmium::detail::subitem_of_type<const RelationMemberList>(
cbegin(),
cend());
205 #endif // OSMIUM_OSM_RELATION_HPP
Definition: osm_object_builder.hpp:402
RelationMember & operator=(RelationMember &&)=delete
RelationMember(const RelationMember &)=delete
Definition: object.hpp:64
#define OSMIUM_DEPRECATED
Definition: compatibility.hpp:50
const RelationMemberList & cmembers() const
Get a const reference to the member list.
Definition: relation.hpp:196
int64_t object_id_type
Type for OSM object (node, way, or relation) IDs.
Definition: types.hpp:45
item_type type() const noexcept
Definition: relation.hpp:132
const OSMObject & get_object() const
Definition: relation.hpp:148
const char * role() const noexcept
Definition: relation.hpp:140
RelationMember & operator=(const RelationMember &)=delete
const unsigned char * endpos() const
Definition: relation.hpp:70
static constexpr item_type collection_type
Definition: relation.hpp:97
uint16_t m_flags
Definition: relation.hpp:63
static constexpr osmium::item_type itemtype
Definition: collection.hpp:128
uint64_t unsigned_object_id_type
Type for OSM object (node, way, or relation) IDs where we only allow positive IDs.
Definition: types.hpp:46
constexpr static bool is_compatible_to(osmium::item_type t) noexcept
Definition: relation.hpp:158
Definition: collection.hpp:47
const_iterator cbegin() const noexcept
Definition: collection.hpp:164
bool full_member() const noexcept
Definition: relation.hpp:136
item_type m_type
Definition: relation.hpp:62
unsigned char * next()
Definition: relation.hpp:77
Namespace for everything in the Osmium library.
Definition: assembler.hpp:53
constexpr static bool is_compatible_to(osmium::item_type t) noexcept
Definition: relation.hpp:181
const unsigned char * next() const
Definition: relation.hpp:84
const_iterator cend() const noexcept
Definition: collection.hpp:168
~RelationMember() noexcept=default
@ relation
Definition: entity_bits.hpp:70
RelationMember & set_ref(const osmium::object_id_type ref) noexcept
Definition: relation.hpp:127
Definition: relation.hpp:168
Definition: osm_object_builder.hpp:229
iterator end() noexcept
Definition: collection.hpp:160
Definition: relation.hpp:57
iterator begin() noexcept
Definition: collection.hpp:156
void set_role_size(string_size_type size) noexcept
Definition: relation.hpp:91
OSMIUM_DEPRECATED RelationMember & ref(object_id_type ref) noexcept
Definition: relation.hpp:118
Relation() noexcept
Definition: relation.hpp:173
RelationMember(RelationMember &&)=delete
object_id_type ref() const noexcept
Definition: relation.hpp:113
const RelationMemberList & members() const
Get a const reference to the member list.
Definition: relation.hpp:191
constexpr std::size_t padded_length(std::size_t length) noexcept
Definition: item.hpp:64
unsigned char * endpos()
Definition: relation.hpp:66
RelationMemberList & members()
Get a reference to the member list.
Definition: relation.hpp:186
OSMObject & get_object()
Definition: relation.hpp:144
Definition: relation.hpp:154
Definition: collection.hpp:117
unsigned char * data() const noexcept
Definition: collection.hpp:91
RelationMember(const object_id_type ref=0, const item_type type=item_type(), const bool full=false) noexcept
Definition: relation.hpp:99
uint16_t string_size_type
Definition: types.hpp:59
item_type
Definition: item_type.hpp:43
RelationMemberList() noexcept=default
unsigned_object_id_type positive_ref() const noexcept
Definition: relation.hpp:123
object_id_type m_ref
Definition: relation.hpp:61
string_size_type m_role_size
Definition: relation.hpp:64