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()) {
83 for (
const auto& member : relation.
members()) {
84 switch (member.type()) {
106 #endif // OSMIUM_HANDLER_OBJECT_RELATIONS_HPP WayNodeList & nodes()
Definition: way.hpp:75
RelationMemberList & members()
Definition: relation.hpp:177
index_type & m_index_w2r
Definition: object_relations.hpp:59
Definition: relation.hpp:165
virtual void set(const TId id, const TValue value)=0
Set the field with id to value.
Definition: handler.hpp:45
Namespace for everything in the Osmium library.
Definition: assembler.hpp:59
osmium::index::multimap::Multimap< unsigned_object_id_type, unsigned_object_id_type > index_type
Definition: object_relations.hpp:55
unsigned_object_id_type positive_id() const noexcept
Get absolute value of the ID of this object.
Definition: object.hpp:115
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
index_type & m_index_n2r
Definition: object_relations.hpp:58
index_type & m_index_r2r
Definition: object_relations.hpp:60
~ObjectRelations() noexcept=default