1#ifndef OSMIUM_RELATIONS_MANAGER_UTIL_HPP
2#define OSMIUM_RELATIONS_MANAGER_UTIL_HPP
47#include <initializer_list>
63 template <
typename TManager>
120 template <
typename ...TManager>
125 (void)std::initializer_list<int>{(managers.prepare_for_lookup(), 0)...};
144 template <
typename ...TManager>
147 while (
auto buffer = reader.read()) {
148 progress_bar.
update(reader.offset());
152 (void)std::initializer_list<int>{(managers.prepare_for_lookup(), 0)...};
176 template <
typename TStream>
180 stream <<
" relations: " << std::setw(8) << (mu.
relations_db / 1024) <<
" kB\n"
181 <<
" members: " << std::setw(8) << (mu.
members_db / 1024) <<
" kB\n"
182 <<
" stash: " << std::setw(8) << (mu.
stash / 1024) <<
" kB\n"
183 <<
" total: " << std::setw(8) << (total / 1024) <<
" kB\n"
184 <<
" ======================\n";
Definition: progress_bar.hpp:46
void file_done(std::size_t file_size)
Definition: progress_bar.hpp:166
void update(std::size_t current_size)
Definition: progress_bar.hpp:150
Definition: relation.hpp:161
Definition: handler.hpp:71
Definition: reader.hpp:90
Definition: manager_util.hpp:64
void relation(const osmium::Relation &relation)
Definition: manager_util.hpp:91
void node(const osmium::Node &node)
Definition: manager_util.hpp:77
void way(const osmium::Way &way)
Definition: manager_util.hpp:84
SecondPassHandler(TManager &manager) noexcept
Definition: manager_util.hpp:70
TManager & m_manager
Definition: manager_util.hpp:66
void flush()
Definition: manager_util.hpp:100
@ relation
Definition: entity_bits.hpp:70
void print_used_memory(TStream &stream, const relations_manager_memory_usage &mu)
Definition: manager_util.hpp:177
void read_relations(const osmium::io::File &file, TManager &...managers)
Definition: manager_util.hpp:121
Namespace for everything in the Osmium library.
Definition: assembler.hpp:53
void apply(TIterator it, TIterator end, THandlers &&... handlers)
Definition: visitor.hpp:326
Definition: manager_util.hpp:160
std::size_t members_db
Definition: manager_util.hpp:162
std::size_t relations_db
Definition: manager_util.hpp:161
std::size_t stash
Definition: manager_util.hpp:163