1 #ifndef OSMIUM_HANDLER_OBJECT_RELATIONS_HPP
2 #define OSMIUM_HANDLER_OBJECT_RELATIONS_HPP
64 explicit ObjectRelations(index_type& n2w, index_type& n2r, index_type& w2r, index_type& r2r) :
77 for (
const auto& node_ref : way.nodes()) {
78 m_index_n2w.
set(node_ref.positive_ref(), way.positive_id());
83 for (
const auto& member : relation.
members()) {
84 switch (member.type()) {
106 #endif // OSMIUM_HANDLER_OBJECT_RELATIONS_HPP
RelationMemberList & members()
Definition: relation.hpp:174
index_type & m_index_w2r
Definition: object_relations.hpp:59
Definition: relation.hpp:162
virtual void set(const TId id, const TValue value)=0
Set the field with id to value.
Definition: handler.hpp:55
Namespace for everything in the Osmium library.
Definition: assembler.hpp:55
osmium::index::multimap::Multimap< unsigned_object_id_type, unsigned_object_id_type > index_type
Definition: object_relations.hpp:55
void way(const osmium::Way &way)
Definition: object_relations.hpp:76
ObjectRelations & operator=(const ObjectRelations &)=delete
index_type & m_index_n2w
Definition: object_relations.hpp:57
void relation(const osmium::Relation &relation)
Definition: object_relations.hpp:82
Definition: object_relations.hpp:53
Definition: multimap.hpp:51
ObjectRelations(index_type &n2w, index_type &n2r, index_type &w2r, index_type &r2r)
Definition: object_relations.hpp:64
unsigned_object_id_type positive_id() const noexcept
Get absolute value of the ID of this object.
Definition: object.hpp:114
index_type & m_index_n2r
Definition: object_relations.hpp:58
index_type & m_index_r2r
Definition: object_relations.hpp:60
~ObjectRelations() noexcept=default