1 #ifndef SIPLASPLAS_SIGNALS_SYNCSINK_HPP 2 #define SIPLASPLAS_SIGNALS_SYNCSINK_HPP 5 #include <siplasplas/reflection/dynamic/function_pointer.hpp> 6 #include <siplasplas/signals/export.hpp> 32 template<
typename Caller,
typename Function>
48 template<
typename Caller,
typename Callee,
typename Function>
49 SyncSink(Caller& caller, Callee& callee, Function
function) :
68 void invoke(
const std::vector<cpp::dynamic_reflection::Object>& args)
override;
69 bool invokeWithoutCallee()
const override;
72 cpp::dynamic_reflection::FunctionPointer _fptr;
77 #endif // SIPLASPLAS_SIGNALS_SYNCSINK_HPP Implements a direct connection to the destination function.
Definition: syncsink.hpp:20
Definition: canary_allocator.hpp:7
SyncSink(Caller &caller, Function function)
Creates a synchronous sink given a caller and a destination function.
Definition: syncsink.hpp:33
Interface to the signals sink API.
Definition: sink.hpp:39
SyncSink(Caller &caller, Callee &callee, Function function)
Creates a synchronous sink given a caller, a callee, and a destination function.
Definition: syncsink.hpp:49