semf
|
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...
#include <slot.h>
Public Types | |
typedef void(* | Function) (T &, Arguments &&...) |
Public Member Functions | |
Slot (T &object, Function function) | |
Constructor. More... | |
virtual | ~Slot ()=default |
void | setObject (T &object) |
Set the reference to the context. More... | |
T & | object () const |
Get the reference to the context. More... | |
void | setFunction (Function function) |
setFunction Set the method which should called. More... | |
Function | function () const |
Get the method which should called. 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... | |
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.
T | Type of the class object |
Arguments | The parameter types for pass parameter over the signal to a method. |
typedef void(* semf::Slot< T, Arguments >::Function) (T &, Arguments &&...) |
|
inline |
|
virtualdefault |
|
protectedvirtual |
The invocation of the callback.
arguments | Arguments for the callback. |
Implements semf::SlotBase< Arguments... >.
Slot< T, Arguments... >::Function semf::Slot< T, Arguments >::function |
T & semf::Slot< T, Arguments >::object |
void semf::Slot< T, Arguments >::setFunction | ( | Function | function | ) |
void semf::Slot< T, Arguments >::setObject | ( | T & | object | ) |