1 #ifndef OSMIUM_OSM_WAY_HPP
2 #define OSMIUM_OSM_WAY_HPP
46 template <
typename T>
class ObjectBuilder;
70 OSMObject(sizeof(Way), osmium::item_type::way) {
76 return osmium::detail::subitem_of_type<WayNodeList>(
begin(),
end());
80 return osmium::detail::subitem_of_type<const WayNodeList>(
cbegin(),
cend());
88 for (
auto& node_ref :
nodes()) {
89 if (node_ref.ref() == new_node_ref.
ref()) {
90 node_ref.set_location(new_node_ref.
location());
115 #endif // OSMIUM_OSM_WAY_HPP
WayNodeList & nodes()
Definition: way.hpp:75
bool is_closed() const noexcept
Definition: node_ref_list.hpp:113
bool ends_have_same_id() const
Definition: way.hpp:102
item_type
Definition: item_type.hpp:43
const_iterator cend() const
Definition: object.hpp:348
bool ends_have_same_location() const
Definition: node_ref_list.hpp:134
bool ends_have_same_id() const noexcept
Definition: node_ref_list.hpp:123
const_iterator cbegin() const
Definition: object.hpp:344
iterator end()
Definition: object.hpp:340
const WayNodeList & nodes() const
Definition: way.hpp:79
constexpr osmium::object_id_type ref() const noexcept
Definition: node_ref.hpp:65
Namespace for everything in the Osmium library.
Definition: assembler.hpp:66
void update_node_location(const NodeRef &new_node_ref)
Definition: way.hpp:87
bool ends_have_same_location() const
Definition: way.hpp:106
WayNodeList()
Definition: way.hpp:58
osmium::Location & location() noexcept
Definition: node_ref.hpp:79
Definition: builder.hpp:186
Definition: node_ref_list.hpp:50
bool is_closed() const
Definition: way.hpp:98
Definition: node_ref.hpp:50
static constexpr osmium::item_type itemtype
Definition: way.hpp:56
Definition: object.hpp:60
iterator begin()
Definition: object.hpp:336