1 #ifndef OSMIUM_OSM_DIFF_OBJECT_HPP
2 #define OSMIUM_OSM_DIFF_OBJECT_HPP
101 return m_prev ==
nullptr;
110 assert(m_prev && m_curr && m_next);
120 assert(m_prev && m_curr && m_next);
130 assert(m_prev && m_curr && m_next);
140 assert(m_prev && m_curr && m_next);
150 assert(m_prev && m_curr && m_next);
160 assert(m_prev && m_curr && m_next);
161 return m_curr->
type();
170 assert(m_prev && m_curr && m_next);
180 assert(m_prev && m_curr && m_next);
190 assert(m_prev && m_curr && m_next);
200 assert(m_prev && m_curr && m_next);
214 assert(m_prev && m_curr && m_next);
228 assert(m_prev && m_curr && m_next);
240 assert(m_prev && m_curr && m_next);
246 template <
typename T>
255 const T&
prev() const noexcept {
259 const T&
curr() const noexcept {
263 const T&
next() const noexcept {
275 #endif // OSMIUM_OSM_DIFF_OBJECT_HPP
uint32_t object_version_type
Type for OSM object version number.
Definition: types.hpp:47
osmium::object_version_type version() const noexcept
Definition: diff_object.hpp:179
DiffObjectDerived(const T &prev, const T &curr, const T &next) noexcept
Definition: diff_object.hpp:251
const osmium::OSMObject & prev() const noexcept
Definition: diff_object.hpp:109
Definition: diff_object.hpp:66
osmium::item_type type() const noexcept
Definition: diff_object.hpp:159
item_type
Definition: item_type.hpp:43
bool last() const noexcept
Definition: diff_object.hpp:149
const T & next() const noexcept
Definition: diff_object.hpp:263
DiffObject() noexcept
Definition: diff_object.hpp:78
const osmium::Timestamp start_time() const noexcept
Definition: diff_object.hpp:199
osmium::changeset_id_type changeset() const noexcept
Definition: diff_object.hpp:189
bool is_visible_at(const osmium::Timestamp ×tamp) const noexcept
Definition: diff_object.hpp:239
Namespace for everything in the Osmium library.
Definition: assembler.hpp:73
const T & curr() const noexcept
Definition: diff_object.hpp:259
const osmium::Timestamp end_time() const noexcept
Definition: diff_object.hpp:213
const osmium::OSMObject * m_next
Definition: diff_object.hpp:70
Definition: timestamp.hpp:115
const osmium::OSMObject * m_prev
Definition: diff_object.hpp:68
bool empty() const noexcept
Definition: diff_object.hpp:100
uint32_t changeset_id_type
Type for OSM changeset IDs.
Definition: types.hpp:48
int64_t object_id_type
Type for OSM object (node, way, or relation) IDs.
Definition: types.hpp:45
changeset_id_type changeset() const noexcept
Get changeset id of this object.
Definition: object.hpp:210
Definition: diff_object.hpp:247
osmium::object_id_type id() const noexcept
Definition: diff_object.hpp:169
const osmium::OSMObject & curr() const noexcept
Definition: diff_object.hpp:119
DiffObject(const osmium::OSMObject &prev, const osmium::OSMObject &curr, const osmium::OSMObject &next) noexcept
Definition: diff_object.hpp:89
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:255
bool visible() const noexcept
Is this object marked visible (ie not deleted)?
Definition: object.hpp:144
bool first() const noexcept
Definition: diff_object.hpp:139
const osmium::OSMObject * m_curr
Definition: diff_object.hpp:69
constexpr Timestamp end_of_time() noexcept
Definition: timestamp.hpp:267
item_type type() const noexcept
Definition: item.hpp:165
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:129
Definition: object.hpp:58
bool is_between(const osmium::Timestamp &from, const osmium::Timestamp &to) const noexcept
Definition: diff_object.hpp:227