Libosmium
2.15.6
Fast and flexible C++ library for working with OpenStreetMap data
|
Go to the documentation of this file. 1 #ifndef OSMIUM_OSM_NODE_REF_HPP
2 #define OSMIUM_OSM_NODE_REF_HPP
50 class NodeRef :
public osmium::memory::detail::ItemHelper {
117 constexpr int32_t
x() const noexcept {
124 constexpr int32_t
y() const noexcept {
154 return lhs.ref() == rhs.ref();
162 return !(lhs == rhs);
170 return lhs.ref() < rhs.ref();
200 template <
typename TChar,
typename TTraits>
202 return out <<
"<" << nr.
ref() <<
" " << nr.
location() <<
">";
211 return lhs.location() == rhs.location();
226 return lhs.location() < rhs.location();
237 #endif // OSMIUM_OSM_NODE_REF_HPP
Definition: node_ref.hpp:208
NodeRef & set_ref(const osmium::object_id_type ref) noexcept
Definition: node_ref.hpp:133
osmium::object_id_type m_ref
Definition: node_ref.hpp:52
constexpr int32_t x() const noexcept
Definition: node_ref.hpp:117
double lat() const
Definition: node_ref.hpp:110
int64_t object_id_type
Type for OSM object (node, way, or relation) IDs.
Definition: types.hpp:45
double lon() const
Definition: location.hpp:396
constexpr int32_t x() const noexcept
Definition: location.hpp:373
constexpr osmium::Location location() const noexcept
Definition: node_ref.hpp:92
constexpr NodeRef(const osmium::object_id_type ref=0, const osmium::Location &location=Location{}) noexcept
Definition: node_ref.hpp:63
constexpr int32_t y() const noexcept
Definition: location.hpp:377
bool operator<=(const Changeset &lhs, const Changeset &rhs)
Definition: changeset.hpp:461
bool operator>=(const Changeset &lhs, const Changeset &rhs)
Definition: changeset.hpp:465
constexpr bool operator()(const NodeRef &lhs, const NodeRef &rhs) const noexcept
Definition: node_ref.hpp:210
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
bool operator>(const Changeset &lhs, const Changeset &rhs)
Definition: changeset.hpp:457
osmium::Location & location() noexcept
Definition: node_ref.hpp:85
osmium::unsigned_object_id_type positive_ref() const noexcept
Definition: node_ref.hpp:78
double lat() const
Definition: location.hpp:415
Namespace for everything in the Osmium library.
Definition: assembler.hpp:53
double lon() const
Definition: node_ref.hpp:101
constexpr bool operator==(const Box &lhs, const Box &rhs) noexcept
Definition: box.hpp:212
bool operator<(const Changeset &lhs, const Changeset &rhs)
Definition: changeset.hpp:453
osmium::Location m_location
Definition: node_ref.hpp:53
bool result_type
Definition: node_ref.hpp:231
Definition: location.hpp:271
std::basic_ostream< TChar, TTraits > & operator<<(std::basic_ostream< TChar, TTraits > &out, const osmium::Box &box)
Definition: box.hpp:224
Definition: node_ref.hpp:223
constexpr bool operator()(const NodeRef &lhs, const NodeRef &rhs) const noexcept
Definition: node_ref.hpp:225
constexpr int32_t y() const noexcept
Definition: node_ref.hpp:124
constexpr osmium::object_id_type ref() const noexcept
Definition: node_ref.hpp:71
bool result_type
Definition: node_ref.hpp:216
Definition: node_ref.hpp:50
NodeRef & set_location(const osmium::Location &location) noexcept
Definition: node_ref.hpp:143
bool operator!=(const Changeset &lhs, const Changeset &rhs)
Definition: changeset.hpp:446