1 #ifndef OSMIUM_THREAD_FUNCTION_WRAPPER_HPP 2 #define OSMIUM_THREAD_FUNCTION_WRAPPER_HPP 59 std::unique_ptr<impl_base>
impl;
67 m_functor(
std::forward<F>(functor)) {
81 template <
typename TFunction>
83 impl(new
impl_type<TFunction>(
std::forward<TFunction>(f))) {
100 impl(
std::move(other.impl)) {
104 impl = std::move(other.impl);
113 explicit operator bool()
const {
114 return static_cast<bool>(
impl);
123 #endif // OSMIUM_THREAD_FUNCTION_WRAPPER_HPP F m_functor
Definition: function_wrapper.hpp:64
function_wrapper()=default
Definition: function_wrapper.hpp:50
Definition: reader_iterator.hpp:39
impl_type(F &&functor)
Definition: function_wrapper.hpp:66
function_wrapper & operator=(function_wrapper &&other)
Definition: function_wrapper.hpp:103
function_wrapper(function_wrapper &&other)
Definition: function_wrapper.hpp:99
virtual ~impl_base()=default
std::unique_ptr< impl_base > impl
Definition: function_wrapper.hpp:59
Namespace for everything in the Osmium library.
Definition: assembler.hpp:73
~function_wrapper()=default
Definition: function_wrapper.hpp:62
Definition: function_wrapper.hpp:48
function_wrapper(int)
Definition: function_wrapper.hpp:89
function_wrapper(TFunction &&f)
Definition: function_wrapper.hpp:82
bool operator()()
Definition: function_wrapper.hpp:93
virtual bool call()
Definition: function_wrapper.hpp:53
bool call() override
Definition: function_wrapper.hpp:70