Libosmium
2.20.0
Fast and flexible C++ library for working with OpenStreetMap data
|
#include <node_ref.hpp>
Public Member Functions | |
constexpr | NodeRef (const osmium::object_id_type ref=0, const osmium::Location &location=Location{}) noexcept |
constexpr osmium::object_id_type | ref () const noexcept |
osmium::unsigned_object_id_type | positive_ref () const noexcept |
osmium::Location & | location () noexcept |
constexpr osmium::Location | location () const noexcept |
double | lon () const |
double | lat () const |
constexpr int32_t | x () const noexcept |
constexpr int32_t | y () const noexcept |
NodeRef & | set_ref (const osmium::object_id_type ref) noexcept |
NodeRef & | set_location (const osmium::Location &location) noexcept |
Private Attributes | |
osmium::object_id_type | m_ref |
osmium::Location | m_location |
This reference to a node contains a node ID and a (possibly empty) location.
|
inlineconstexprnoexcept |
Constructor for NodeRef
This is not explicit to allow implicit construction from an object ID.
|
inline |
Get latitude of the location in this NodeRef.
osmium::invalid_location | if the location is not set. |
|
inlineconstexprnoexcept |
Get location of this NodeRef.
|
inlinenoexcept |
Get reference to location in this NodeRef. Can be used to update it.
|
inline |
Get longitude of the location in this NodeRef.
osmium::invalid_location | if the location is not set. |
|
inlinenoexcept |
Get absolute value of the reference ID of this NodeRef.
|
inlineconstexprnoexcept |
Get reference ID of this NodeRef.
|
inlinenoexcept |
Set the location.
|
inlinenoexcept |
Set the referenced ID.
|
inlineconstexprnoexcept |
Get internal x value of the location in this NodeRef.
|
inlineconstexprnoexcept |
Get internal y value of the location in this NodeRef.
|
private |
|
private |