1 #ifndef OSMIUM_OSM_WAY_HPP
2 #define OSMIUM_OSM_WAY_HPP
47 template <
typename TDerived,
typename T>
48 class OSMObjectBuilder;
69 template <
typename TDerived,
typename T>
79 return osmium::detail::subitem_of_type<WayNodeList>(
begin(),
end());
83 return osmium::detail::subitem_of_type<const WayNodeList>(
cbegin(),
cend());
91 for (
auto& node_ref :
nodes()) {
92 if (node_ref.ref() == new_node_ref.
ref()) {
93 node_ref.set_location(new_node_ref.
location());
118 #endif // OSMIUM_OSM_WAY_HPP
WayNodeList & nodes()
Definition: way.hpp:78
Definition: osm_object_builder.hpp:376
bool is_closed() const noexcept
Definition: node_ref_list.hpp:135
bool ends_have_same_id() const
Definition: way.hpp:105
item_type
Definition: item_type.hpp:43
const_iterator cend() const
Definition: object.hpp:371
bool ends_have_same_location() const
Definition: node_ref_list.hpp:160
bool ends_have_same_id() const noexcept
Definition: node_ref_list.hpp:147
const_iterator cbegin() const
Definition: object.hpp:367
iterator end()
Definition: object.hpp:363
const WayNodeList & nodes() const
Definition: way.hpp:82
constexpr osmium::object_id_type ref() const noexcept
Definition: node_ref.hpp:65
Namespace for everything in the Osmium library.
Definition: assembler.hpp:73
Way() noexcept
Definition: way.hpp:72
void update_node_location(const NodeRef &new_node_ref)
Definition: way.hpp:90
bool ends_have_same_location() const
Definition: way.hpp:109
WayNodeList()
Definition: way.hpp:60
osmium::Location & location() noexcept
Definition: node_ref.hpp:79
Definition: node_ref_list.hpp:51
bool is_closed() const
Definition: way.hpp:101
Definition: node_ref.hpp:50
static constexpr osmium::item_type itemtype
Definition: way.hpp:58
Definition: object.hpp:63
iterator begin()
Definition: object.hpp:359