1 #ifndef OSMIUM_OSM_DIFF_OBJECT_HPP
2 #define OSMIUM_OSM_DIFF_OBJECT_HPP
98 return m_prev ==
nullptr;
107 assert(m_prev && m_curr && m_next);
117 assert(m_prev && m_curr && m_next);
127 assert(m_prev && m_curr && m_next);
137 assert(m_prev && m_curr && m_next);
147 assert(m_prev && m_curr && m_next);
157 assert(m_prev && m_curr && m_next);
158 return m_curr->
type();
167 assert(m_prev && m_curr && m_next);
177 assert(m_prev && m_curr && m_next);
187 assert(m_prev && m_curr && m_next);
197 assert(m_prev && m_curr && m_next);
211 assert(m_prev && m_curr && m_next);
225 assert(m_prev && m_curr && m_next);
237 assert(m_prev && m_curr && m_next);
243 template <
typename T>
252 const T&
prev() const noexcept {
256 const T&
curr() const noexcept {
260 const T&
next() const noexcept {
272 #endif // OSMIUM_OSM_DIFF_OBJECT_HPP
osmium::object_version_type version() const noexcept
Definition: diff_object.hpp:176
DiffObjectDerived(const T &prev, const T &curr, const T &next) noexcept
Definition: diff_object.hpp:248
const osmium::OSMObject & prev() const noexcept
Definition: diff_object.hpp:106
Definition: diff_object.hpp:63
osmium::item_type type() const noexcept
Definition: diff_object.hpp:156
item_type
Definition: item_type.hpp:43
bool last() const noexcept
Definition: diff_object.hpp:146
const T & next() const noexcept
Definition: diff_object.hpp:260
DiffObject() noexcept
Definition: diff_object.hpp:75
const osmium::Timestamp start_time() const noexcept
Definition: diff_object.hpp:196
osmium::changeset_id_type changeset() const noexcept
Definition: diff_object.hpp:186
bool is_visible_at(const osmium::Timestamp ×tamp) const noexcept
Definition: diff_object.hpp:236
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:59
const T & curr() const noexcept
Definition: diff_object.hpp:256
const osmium::Timestamp end_time() const noexcept
Definition: diff_object.hpp:210
const osmium::OSMObject * m_next
Definition: diff_object.hpp:67
Definition: timestamp.hpp:56
const osmium::OSMObject * m_prev
Definition: diff_object.hpp:65
bool empty() const noexcept
Definition: diff_object.hpp:97
changeset_id_type changeset() const noexcept
Get changeset id of this object.
Definition: object.hpp:210
Definition: diff_object.hpp:244
osmium::object_id_type id() const noexcept
Definition: diff_object.hpp:166
const osmium::OSMObject & curr() const noexcept
Definition: diff_object.hpp:116
DiffObject(const osmium::OSMObject &prev, const osmium::OSMObject &curr, const osmium::OSMObject &next) noexcept
Definition: diff_object.hpp:86
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:252
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:136
const osmium::OSMObject * m_curr
Definition: diff_object.hpp:66
uint32_t changeset_id_type
Type for OSM changeset IDs.
Definition: types.hpp:48
constexpr Timestamp end_of_time() noexcept
Definition: timestamp.hpp:228
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:126
Definition: object.hpp:58
bool is_between(const osmium::Timestamp &from, const osmium::Timestamp &to) const noexcept
Definition: diff_object.hpp:224