11#ifndef SEMF_UTILS_CORE_SIGNALS_STATICSLOT_H_
12#define SEMF_UTILS_CORE_SIGNALS_STATICSLOT_H_
25template <
typename... Arguments>
50 void call(Arguments&&... arguments);
57template <
typename... Arguments>
63template <
typename... Arguments>
66 m_function = function;
69template <
typename... Arguments>
75template <
typename... Arguments>
78 (*m_function)(std::forward<Arguments>(arguments)...);
Base Class for all Slot implementations.
StaticSlot for lightweight signal/slot implementation. This StaticSlot ist for connecting a signal to...
void call(Arguments &&... arguments)
The invocation of the callback.
void setFunction(Function function)
Set the callback function.
Function function() const
function Get the pointer to the callback function.
StaticSlot(Function function)
Constructor.
virtual ~StaticSlot()=default
void(* Function)(Arguments...)