semf
|
Signal for lightweight signal/slot implementation. One signal can be connected to multiple slots and one slot can be connected to multiple signal. Depending on the type of callback function you may want to use you need to connect using different implementations of SlotBase
.
More...
#include <signal.h>
Public Member Functions | |
void | clear () |
Disconnect all functions or methods. More... | |
void | connect (SlotBase< Arguments... > &slot) |
Connect a method to the signal. More... | |
void | disconnect (SlotBase< Arguments... > &slot) |
Disonnect a method from the signal. More... | |
void | emitSignal (Arguments... arguments) const |
Call the connected methods or functions. More... | |
void | operator() (Arguments... arguments) const |
Call the connected methods or functions. More... | |
bool | empty () const |
Checks if the Signal is connected to any slot. More... | |
Signal for lightweight signal/slot implementation. One signal can be connected to multiple slots and one slot can be connected to multiple signal. Depending on the type of callback function you may want to use you need to connect using different implementations of SlotBase
.
Arguments | The parameter types for pass parameter over the signal to a function or method. |
void semf::Signal< Arguments >::clear |
void semf::Signal< Arguments >::connect | ( | SlotBase< Arguments... > & | slot | ) |
void semf::Signal< Arguments >::disconnect | ( | SlotBase< Arguments... > & | slot | ) |
void semf::Signal< Arguments >::emitSignal | ( | Arguments... | arguments | ) | const |
bool semf::Signal< Arguments >::empty |
void semf::Signal< Arguments >::operator() | ( | Arguments... | arguments | ) | const |