Libosmium
2.2.0
Fast and flexible C++ library for working with OpenStreetMap data
|
#include <diff_object.hpp>
Public Member Functions | |
DiffObject () noexcept | |
DiffObject (osmium::OSMObject &prev, osmium::OSMObject &curr, osmium::OSMObject &next) noexcept | |
DiffObject (const DiffObject &)=default | |
DiffObject & | operator= (const DiffObject &)=default |
DiffObject (DiffObject &&)=default | |
DiffObject & | operator= (DiffObject &&)=default |
const osmium::OSMObject & | prev () const noexcept |
const osmium::OSMObject & | curr () const noexcept |
const osmium::OSMObject & | next () const noexcept |
bool | first () const noexcept |
bool | last () const noexcept |
osmium::item_type | type () const noexcept |
osmium::object_id_type | id () const noexcept |
osmium::object_version_type | version () const noexcept |
osmium::changeset_id_type | changeset () const noexcept |
const osmium::Timestamp | start_time () const noexcept |
const osmium::Timestamp | end_time () const noexcept |
bool | is_between (const osmium::Timestamp &from, const osmium::Timestamp &to) const noexcept |
bool | is_visible_at (const osmium::Timestamp ×tamp) const noexcept |
Protected Attributes | |
osmium::OSMObject * | m_prev |
osmium::OSMObject * | m_curr |
osmium::OSMObject * | m_next |
|
inlinenoexcept |
|
inlineexplicitnoexcept |
|
default |
|
default |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
Return the timestamp when the current version of the object is not valid any more, ie the time when the next version of the object is valid. If this is the last version of the object, this will return a special "end of time" timestamp that is guaranteed to be larger than any normal timestamp.
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
Current object version is valid between time "from" (inclusive) and time "to" (not inclusive).
This is a bit more complex than you'd think, because we have to handle the case properly where the start_time() == end_time().
|
inlinenoexcept |
Current object version is visible at the given timestamp.
|
inlinenoexcept |
|
inlinenoexcept |
|
default |
|
default |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
protected |
|
protected |
|
protected |