semf
|
Go to the source code of this file.
Classes | |
class | semf::Slot< T, Arguments > |
Slot for lightweight signal/slot implementation. This ConstSlot is for connecting a signal to a member function. When the signal is emitted, the given member function is invoked. More... | |
Namespaces | |
namespace | semf |
Macros | |
#define | SEMF_SLOT_FUNC(function) [](auto& obj, auto&&... args) { obj.function(std::forward<decltype(args)>(args)...); } |
Creates a binding to a given member function. More... | |
#define | SEMF_SLOT(name, className, object, function, ...) semf::Slot<className, ##__VA_ARGS__> name = {object, SEMF_SLOT_FUNC(function)} |
Creates a semf slot. More... | |
Definition in file slot.h.
#define SEMF_SLOT | ( | name, | |
className, | |||
object, | |||
function, | |||
... | |||
) | semf::Slot<className, ##__VA_ARGS__> name = {object, SEMF_SLOT_FUNC(function)} |