semf
|
StaticSlot for lightweight signal/slot implementation. This StaticSlot ist for connecting a signal to a static function which have a return value from type void. More...
#include <staticslot.h>
Public Types | |
typedef void(* | Function) (Arguments...) |
Public Member Functions | |
StaticSlot (Function function) | |
Constructor. More... | |
virtual | ~StaticSlot ()=default |
void | setFunction (Function function) |
Set the callback function. More... | |
Function | function () const |
function Get the pointer to the callback function. More... | |
Public Member Functions inherited from semf::SlotBase< Arguments... > | |
virtual | ~SlotBase ()=default |
Protected Member Functions | |
void | call (Arguments &&... arguments) |
The invocation of the callback. More... | |
virtual void | call (Arguments &&... arguments)=0 |
The invocation of the callback. More... | |
StaticSlot for lightweight signal/slot implementation. This StaticSlot ist for connecting a signal to a static function which have a return value from type void.
Arguments | The parameter types for pass parameter over the signal to a function. |
Definition at line 26 of file staticslot.h.
typedef void(* semf::StaticSlot< Arguments >::Function) (Arguments...) |
typedef for the function pointer.
Definition at line 30 of file staticslot.h.
|
explicit |
Constructor.
function | pointer to the callback function |
Definition at line 58 of file staticslot.h.
|
virtualdefault |
|
protectedvirtual |
The invocation of the callback.
arguments | Arguments for the callback. |
Implements semf::SlotBase< Arguments... >.
Definition at line 76 of file staticslot.h.
StaticSlot< Arguments... >::Function semf::StaticSlot< Arguments >::function |
function Get the pointer to the callback function.
Definition at line 70 of file staticslot.h.
void semf::StaticSlot< Arguments >::setFunction | ( | Function | function | ) |
Set the callback function.
function | The callback function |
Definition at line 64 of file staticslot.h.