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 {
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());
Definition: object.hpp:64
Definition: relation.hpp:154
constexpr static bool is_compatible_to(osmium::item_type t) noexcept
Definition: relation.hpp:158
RelationMemberList() noexcept=default
Definition: relation.hpp:57
const char * role() const noexcept
Definition: relation.hpp:140
string_size_type m_role_size
Definition: relation.hpp:64
const unsigned char * next() const
Definition: relation.hpp:84
RelationMember(const RelationMember &)=delete
~RelationMember() noexcept=default
object_id_type m_ref
Definition: relation.hpp:61
RelationMember(RelationMember &&)=delete
unsigned char * endpos()
Definition: relation.hpp:66
OSMObject & get_object()
Definition: relation.hpp:144
const OSMObject & get_object() const
Definition: relation.hpp:148
const unsigned char * endpos() const
Definition: relation.hpp:70
RelationMember & operator=(RelationMember &&)=delete
item_type type() const noexcept
Definition: relation.hpp:132
void set_role_size(string_size_type size) noexcept
Definition: relation.hpp:91
unsigned_object_id_type positive_ref() const noexcept
Definition: relation.hpp:123
RelationMember(const object_id_type ref=0, const item_type type=item_type(), const bool full=false) noexcept
Definition: relation.hpp:99
static constexpr item_type collection_type
Definition: relation.hpp:97
OSMIUM_DEPRECATED RelationMember & ref(object_id_type ref) noexcept
Definition: relation.hpp:118
uint16_t m_flags
Definition: relation.hpp:63
bool full_member() const noexcept
Definition: relation.hpp:136
RelationMember & set_ref(const osmium::object_id_type ref) noexcept
Definition: relation.hpp:127
unsigned char * next()
Definition: relation.hpp:77
item_type m_type
Definition: relation.hpp:62
RelationMember & operator=(const RelationMember &)=delete
object_id_type ref() const noexcept
Definition: relation.hpp:113
Definition: relation.hpp:168
const RelationMemberList & members() const
Get a const reference to the member list.
Definition: relation.hpp:191
RelationMemberList & members()
Get a reference to the member list.
Definition: relation.hpp:186
Relation() noexcept
Definition: relation.hpp:173
const RelationMemberList & cmembers() const
Get a const reference to the member list.
Definition: relation.hpp:196
constexpr static bool is_compatible_to(osmium::item_type t) noexcept
Definition: relation.hpp:181
Definition: osm_object_builder.hpp:402
Definition: osm_object_builder.hpp:229
Definition: collection.hpp:47
unsigned char * data() const noexcept
Definition: collection.hpp:91
Definition: collection.hpp:117
static constexpr osmium::item_type itemtype
Definition: collection.hpp:128
iterator end() noexcept
Definition: collection.hpp:160
const_iterator cend() const noexcept
Definition: collection.hpp:168
const_iterator cbegin() const noexcept
Definition: collection.hpp:164
iterator begin() noexcept
Definition: collection.hpp:156
#define OSMIUM_DEPRECATED
Definition: compatibility.hpp:51
constexpr std::size_t padded_length(std::size_t length) noexcept
Definition: item.hpp:64
Namespace for everything in the Osmium library.
Definition: assembler.hpp:53
int64_t object_id_type
Type for OSM object (node, way, or relation) IDs.
Definition: types.hpp:45
uint16_t string_size_type
Definition: types.hpp:59
item_type
Definition: item_type.hpp:43
@ relation_member_list_with_full_members
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