1#ifndef OSMIUM_MEMORY_CALLBACK_BUFFER_HPP
2#define OSMIUM_MEMORY_CALLBACK_BUFFER_HPP
104 m_buffer(initial_buffer_size,
osmium::memory::Buffer::auto_grow::yes),
121 m_buffer(initial_buffer_size,
osmium::memory::Buffer::auto_grow::yes),
133 osmium::memory::Buffer&
buffer() noexcept {
181 osmium::memory::Buffer
read() {
Definition: callback_buffer.hpp:70
osmium::memory::Buffer & buffer() noexcept
Definition: callback_buffer.hpp:133
@ default_max_buffer_size
Definition: callback_buffer.hpp:84
CallbackBuffer(std::size_t initial_buffer_size=default_initial_buffer_size, std::size_t max_buffer_size=default_max_buffer_size)
Definition: callback_buffer.hpp:103
std::size_t m_max_buffer_size
Definition: callback_buffer.hpp:89
CallbackBuffer(callback_func_type callback, std::size_t initial_buffer_size=default_initial_buffer_size, std::size_t max_buffer_size=default_max_buffer_size)
Definition: callback_buffer.hpp:120
void set_callback(const callback_func_type &callback=nullptr) noexcept
Definition: callback_buffer.hpp:144
osmium::memory::Buffer read()
Definition: callback_buffer.hpp:181
std::function< void(osmium::memory::Buffer &&)> callback_func_type
The type for the callback function.
Definition: callback_buffer.hpp:75
osmium::memory::Buffer m_buffer
Definition: callback_buffer.hpp:87
void possibly_flush()
Definition: callback_buffer.hpp:170
void flush()
Definition: callback_buffer.hpp:156
@ default_initial_buffer_size
Definition: callback_buffer.hpp:80
callback_func_type m_callback
Definition: callback_buffer.hpp:90
std::size_t m_initial_buffer_size
Definition: callback_buffer.hpp:88
Namespace for everything in the Osmium library.
Definition: assembler.hpp:53
Definition: location.hpp:555