1 #ifndef OSMIUM_OSM_DIFF_OBJECT_HPP
2 #define OSMIUM_OSM_DIFF_OBJECT_HPP
91 bool last() const noexcept {
96 return m_curr->
type();
136 const T&
prev() const noexcept {
137 return *
static_cast<const T*
>(
m_prev);
140 const T&
curr() const noexcept {
141 return *
static_cast<const T*
>(
m_curr);
144 const T&
next() const noexcept {
145 return *
static_cast<const T*
>(
m_next);
156 #endif // OSMIUM_OSM_DIFF_OBJECT_HPP
osmium::object_version_type version() const noexcept
Definition: diff_object.hpp:103
osmium::OSMObject * m_prev
Definition: diff_object.hpp:51
const osmium::OSMObject & prev() const noexcept
Definition: diff_object.hpp:75
Definition: diff_object.hpp:47
osmium::item_type type() const noexcept
Definition: diff_object.hpp:95
item_type
Definition: item_type.hpp:42
bool last() const noexcept
Definition: diff_object.hpp:91
const T & next() const noexcept
Definition: diff_object.hpp:144
osmium::OSMObject * m_curr
Definition: diff_object.hpp:52
DiffObject() noexcept
Definition: diff_object.hpp:57
const osmium::Timestamp start_time() const noexcept
Definition: diff_object.hpp:111
osmium::changeset_id_type changeset() const noexcept
Definition: diff_object.hpp:107
DiffObjectDerived & operator=(const DiffObjectDerived &)=default
int64_t object_id_type
Type for OSM object (node, way, or relation) IDs.
Definition: types.hpp:46
Namespace for everything in the Osmium library.
Definition: assembler.hpp:55
const T & curr() const noexcept
Definition: diff_object.hpp:140
DiffObject & operator=(const DiffObject &)=default
const osmium::Timestamp end_time() const noexcept
Definition: diff_object.hpp:115
DiffObjectDerived(T &prev, T &curr, T &next) noexcept
Definition: diff_object.hpp:126
Definition: timestamp.hpp:52
osmium::OSMObject * m_next
Definition: diff_object.hpp:53
changeset_id_type changeset() const noexcept
Get changeset id of this object.
Definition: object.hpp:209
Definition: diff_object.hpp:122
DiffObjectDerived< osmium::Relation > DiffRelation
Definition: diff_object.hpp:152
osmium::object_id_type id() const noexcept
Definition: diff_object.hpp:99
const osmium::OSMObject & curr() const noexcept
Definition: diff_object.hpp:79
DiffObject(osmium::OSMObject &prev, osmium::OSMObject &curr, osmium::OSMObject &next) noexcept
Definition: diff_object.hpp:63
object_id_type id() const noexcept
Get ID of this object.
Definition: object.hpp:109
object_version_type version() const noexcept
Get version of this object.
Definition: object.hpp:185
const T & prev() const noexcept
Definition: diff_object.hpp:136
DiffObjectDerived< osmium::Node > DiffNode
Definition: diff_object.hpp:150
uint32_t object_version_type
Type for OSM object version number.
Definition: types.hpp:48
bool first() const noexcept
Definition: diff_object.hpp:87
uint32_t changeset_id_type
Type for OSM changeset IDs.
Definition: types.hpp:49
item_type type() const noexcept
Definition: item.hpp:156
osmium::Timestamp timestamp() const noexcept
Get timestamp when this object last changed.
Definition: object.hpp:273
const osmium::OSMObject & next() const noexcept
Definition: diff_object.hpp:83
DiffObjectDerived< osmium::Way > DiffWay
Definition: diff_object.hpp:151
Definition: object.hpp:57