1 #ifndef OSMIUM_HANDLER_DISK_STORE_HPP 2 #define OSMIUM_HANDLER_DISK_STORE_HPP 38 #include <osmium/io/detail/read_write.hpp> 76 m_node_index(node_index),
77 m_way_index(way_index),
78 m_relation_index(relation_index) {
97 osmium::io::detail::reliable_write(m_data_fd, buffer.
data(), buffer.
committed());
107 #endif // OSMIUM_HANDLER_DISK_STORE_HPP offset_index_type & m_relation_index
Definition: disk_store.hpp:70
offset_index_type & m_node_index
Definition: disk_store.hpp:68
void node(const osmium::Node &node)
Definition: disk_store.hpp:81
int m_data_fd
Definition: disk_store.hpp:66
Definition: relation.hpp:168
Definition: handler.hpp:71
std::size_t committed() const noexcept
Definition: buffer.hpp:261
void operator()(const osmium::memory::Buffer &buffer)
Definition: disk_store.hpp:96
DiskStore(int data_fd, offset_index_type &node_index, offset_index_type &way_index, offset_index_type &relation_index)
Definition: disk_store.hpp:74
t_iterator< T > end()
Definition: buffer.hpp:619
Definition: disk_store.hpp:61
Namespace for everything in the Osmium library.
Definition: assembler.hpp:53
t_iterator< T > begin()
Definition: buffer.hpp:563
void apply(TIterator it, TIterator end, THandlers &&... handlers)
Definition: visitor.hpp:218
unsigned char * data() const noexcept
Definition: buffer.hpp:244
offset_index_type & m_way_index
Definition: disk_store.hpp:69
item_size_type byte_size() const noexcept
Definition: item.hpp:161
Definition: buffer.hpp:97
void way(const osmium::Way &way)
Definition: disk_store.hpp:86
unsigned_object_id_type positive_id() const noexcept
Get absolute value of the ID of this object.
Definition: object.hpp:127
void relation(const osmium::Relation &relation)
Definition: disk_store.hpp:91
std::size_t m_offset
Definition: disk_store.hpp:65
virtual void set(const TId id, const TValue value)=0
Set the field with id to value.