1 #ifndef OSMIUM_OSM_DIFF_OBJECT_HPP
2 #define OSMIUM_OSM_DIFF_OBJECT_HPP
91 bool last() const noexcept {
96 return m_curr->
type();
163 const T&
prev() const noexcept {
164 return *
static_cast<const T*
>(
m_prev);
167 const T&
curr() const noexcept {
168 return *
static_cast<const T*
>(
m_curr);
171 const T&
next() const noexcept {
172 return *
static_cast<const T*
>(
m_next);
183 #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:43
bool last() const noexcept
Definition: diff_object.hpp:91
const T & next() const noexcept
Definition: diff_object.hpp:171
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
bool is_visible_at(const osmium::Timestamp ×tamp) const noexcept
Definition: diff_object.hpp:142
int64_t object_id_type
Type for OSM object (node, way, or relation) IDs.
Definition: types.hpp:45
Namespace for everything in the Osmium library.
Definition: assembler.hpp:55
const T & curr() const noexcept
Definition: diff_object.hpp:167
DiffObject & operator=(const DiffObject &)=default
const osmium::Timestamp end_time() const noexcept
Definition: diff_object.hpp:122
DiffObjectDerived(T &prev, T &curr, T &next) noexcept
Definition: diff_object.hpp:153
Definition: timestamp.hpp:52
osmium::OSMObject * m_next
Definition: diff_object.hpp:53
OSMIUM_CONSTEXPR Timestamp end_of_time() noexcept
Definition: timestamp.hpp:163
changeset_id_type changeset() const noexcept
Get changeset id of this object.
Definition: object.hpp:210
Definition: diff_object.hpp:149
DiffObjectDerived< osmium::Relation > DiffRelation
Definition: diff_object.hpp:179
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:110
object_version_type version() const noexcept
Get version of this object.
Definition: object.hpp:186
const T & prev() const noexcept
Definition: diff_object.hpp:163
DiffObjectDerived< osmium::Node > DiffNode
Definition: diff_object.hpp:177
bool visible() const noexcept
Is this object marked visible (ie not deleted)?
Definition: object.hpp:144
uint32_t object_version_type
Type for OSM object version number.
Definition: types.hpp:47
bool first() const noexcept
Definition: diff_object.hpp:87
uint32_t changeset_id_type
Type for OSM changeset IDs.
Definition: types.hpp:48
item_type type() const noexcept
Definition: item.hpp:155
osmium::Timestamp timestamp() const noexcept
Get timestamp when this object last changed.
Definition: object.hpp:274
const osmium::OSMObject & next() const noexcept
Definition: diff_object.hpp:83
DiffObjectDerived< osmium::Way > DiffWay
Definition: diff_object.hpp:178
Definition: object.hpp:58
bool is_between(const osmium::Timestamp &from, const osmium::Timestamp &to) const noexcept
Definition: diff_object.hpp:133