1 #ifndef OSMIUM_THREAD_FUNCTION_WRAPPER_HPP
2 #define OSMIUM_THREAD_FUNCTION_WRAPPER_HPP
53 virtual void call() = 0;
57 std::unique_ptr<impl_base>
impl;
64 m_functor(
std::move(functor)) {
88 impl(
std::move(other.impl)) {
92 impl = std::move(other.impl);
101 explicit operator bool()
const {
102 return static_cast<bool>(
impl);
111 #endif // OSMIUM_THREAD_FUNCTION_WRAPPER_HPP
F m_functor
Definition: function_wrapper.hpp:61
function_wrapper()=default
Definition: function_wrapper.hpp:50
void call() override
Definition: function_wrapper.hpp:67
void operator()()
Definition: function_wrapper.hpp:81
Definition: reader_iterator.hpp:39
impl_type(F &&functor)
Definition: function_wrapper.hpp:63
function_wrapper & operator=(function_wrapper &&other)
Definition: function_wrapper.hpp:91
function_wrapper(function_wrapper &&other)
Definition: function_wrapper.hpp:87
virtual ~impl_base()=default
std::unique_ptr< impl_base > impl
Definition: function_wrapper.hpp:57
Namespace for everything in the Osmium library.
Definition: assembler.hpp:55
~function_wrapper()=default
Definition: function_wrapper.hpp:60
Definition: function_wrapper.hpp:48
function_wrapper(F &&f)
Definition: function_wrapper.hpp:77