1 #ifndef OSMIUM_HANDLER_DISK_STORE_HPP 2 #define OSMIUM_HANDLER_DISK_STORE_HPP 40 #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) {
102 osmium::io::detail::reliable_write(m_data_fd, buffer.
data(), buffer.
committed());
112 #endif // OSMIUM_HANDLER_DISK_STORE_HPP offset_index_type & m_relation_index
Definition: disk_store.hpp:70
size_t m_offset
Definition: disk_store.hpp:65
offset_index_type & m_node_index
Definition: disk_store.hpp:68
void node(const osmium::Node &node)
Definition: disk_store.hpp:86
int m_data_fd
Definition: disk_store.hpp:66
Definition: relation.hpp:168
Definition: handler.hpp:71
void operator()(const osmium::memory::Buffer &buffer)
Definition: disk_store.hpp:101
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:634
Definition: disk_store.hpp:61
Namespace for everything in the Osmium library.
Definition: assembler.hpp:73
t_iterator< T > begin()
Definition: buffer.hpp:578
void apply(TIterator it, TIterator end, THandlers &&... handlers)
Definition: visitor.hpp:218
unsigned char * data() const noexcept
Definition: buffer.hpp:251
~DiskStore() noexcept=default
offset_index_type & m_way_index
Definition: disk_store.hpp:69
item_size_type byte_size() const noexcept
Definition: item.hpp:162
size_t committed() const noexcept
Definition: buffer.hpp:268
Definition: buffer.hpp:97
void way(const osmium::Way &way)
Definition: disk_store.hpp:91
unsigned_object_id_type positive_id() const noexcept
Get absolute value of the ID of this object.
Definition: object.hpp:131
void relation(const osmium::Relation &relation)
Definition: disk_store.hpp:96
DiskStore & operator=(const DiskStore &)=delete
virtual void set(const TId id, const TValue value)=0
Set the field with id to value.