1 #ifndef OSMIUM_OSM_RELATION_HPP
2 #define OSMIUM_OSM_RELATION_HPP
51 template <
typename TDerived,
typename T>
52 class OSMObjectBuilder;
54 class RelationMemberListBuilder;
76 const unsigned char*
endpos()
const {
80 template <
typename TMember>
90 unsigned const char*
next()
const {
108 m_flags(full ? 1 : 0) {
138 const char*
role() const noexcept {
170 template <
typename TDerived,
typename T>
186 return osmium::detail::subitem_of_type<RelationMemberList>(
begin(),
end());
190 return osmium::detail::subitem_of_type<const RelationMemberList>(
cbegin(),
cend());
198 #endif // OSMIUM_OSM_RELATION_HPP
string_size_type m_role_size
Definition: relation.hpp:64
Definition: osm_object_builder.hpp:376
#define OSMIUM_DEPRECATED
Definition: compatibility.hpp:50
Definition: collection.hpp:47
uint16_t m_flags
Definition: relation.hpp:63
RelationMemberList & members()
Definition: relation.hpp:185
const OSMObject & get_object() const
Definition: relation.hpp:146
RelationMemberList()
Definition: relation.hpp:161
item_type
Definition: item_type.hpp:43
Definition: relation.hpp:168
const_iterator cend() const
Definition: object.hpp:379
uint16_t string_size_type
Definition: types.hpp:59
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
OSMObject & get_object()
Definition: relation.hpp:142
Definition: relation.hpp:152
Relation() noexcept
Definition: relation.hpp:173
const_iterator cbegin() const
Definition: object.hpp:375
constexpr std::size_t padded_length(std::size_t length) noexcept
Definition: item.hpp:64
iterator end()
Definition: object.hpp:371
const RelationMemberList & members() const
Definition: relation.hpp:189
static constexpr osmium::item_type itemtype
Definition: relation.hpp:179
Definition: relation.hpp:57
Namespace for everything in the Osmium library.
Definition: assembler.hpp:73
unsigned_object_id_type positive_ref() const noexcept
Definition: relation.hpp:121
static constexpr bool is_compatible_to(osmium::item_type t) noexcept
Definition: relation.hpp:181
Definition: collection.hpp:117
unsigned char * endpos()
Definition: relation.hpp:72
unsigned const char * next() const
Definition: relation.hpp:90
int64_t object_id_type
Type for OSM object (node, way, or relation) IDs.
Definition: types.hpp:45
item_type m_type
Definition: relation.hpp:62
item_type type() const noexcept
Definition: relation.hpp:130
OSMIUM_DEPRECATED RelationMember & ref(object_id_type ref) noexcept
Definition: relation.hpp:116
RelationMember & operator=(const RelationMember &)=delete
bool full_member() const noexcept
Definition: relation.hpp:134
unsigned char * data() const noexcept
Definition: collection.hpp:91
void set_role_size(string_size_type size) noexcept
Definition: relation.hpp:97
object_id_type ref() const noexcept
Definition: relation.hpp:111
const char * role() const noexcept
Definition: relation.hpp:138
RelationMember & set_ref(const osmium::object_id_type ref) noexcept
Definition: relation.hpp:125
Collection()
Definition: collection.hpp:134
object_id_type m_ref
Definition: relation.hpp:61
static constexpr bool is_compatible_to(osmium::item_type t) noexcept
Definition: relation.hpp:156
RelationMember(const object_id_type ref=0, const item_type type=item_type(), const bool full=false) noexcept
Definition: relation.hpp:105
static constexpr item_type collection_type
Definition: relation.hpp:103
const unsigned char * endpos() const
Definition: relation.hpp:76
unsigned char * next()
Definition: relation.hpp:83
Definition: osm_object_builder.hpp:213
RelationMember(const RelationMember &)=delete
Definition: object.hpp:64
iterator begin()
Definition: object.hpp:367