scim 1.4.18
|
A template for a signal passing one argument of type P1 and returning a value of type R. More...
#include <scim_signals.h>
Public Types | |
typedef Slot1< R, P1 > | SlotType |
Function signature for handlers connecting to the signal. | |
Public Member Functions | |
Connection | connect (SlotType *slot) |
SlotType * | slot () |
R | emit (P1 p1) |
R | operator() (P1 p1) |
Function operator; calls emit(). | |
![]() | |
Signal () | |
Constructor. | |
virtual | ~Signal () |
Destructor. | |
SlotNode * | connect (Slot *slot) |
Creates a new SlotNode for slot and adds it to the connection_list. | |
Additional Inherited Members | |
![]() | |
typedef std::vector< Pointer< SlotNode > > | ConnectionList |
ConnectionList type. | |
![]() | |
ConnectionList | connection_list |
A list of all the slots connected to the signal. | |
A template for a signal passing one argument of type P1 and returning a value of type R.
Function signature for handlers connecting to the signal.
|
inline |
Connect a slot to the signal.
slot | - a slot of type Slot1<R, P1>. |
The returned connection object can be used alter or change the connection.
References scim::Signal::connect(), and scim::Signal1< R, P1, Marshal >::slot().
|
inline |
Returns a slot for this signal.
The returned slot can be passed to another signal allowing the other signal to call this signal when it gets emitted.
Referenced by scim::Signal1< R, P1, Marshal >::connect(), scim::Signal1< void, P1, IgnoreMarshal >::connect(), scim::Signal1< R, P1, Marshal >::emit(), and scim::Signal1< void, P1, IgnoreMarshal >::emit().
Emit the signal.
p1 | - passes p1 to the signal handler. |
Calls every slot connected to this signal, in order of connection.
References scim::Slot1< R, P1 >::call(), scim::Signal::connection_list, and scim::Signal1< R, P1, Marshal >::slot().
Referenced by scim::Signal1< R, P1, Marshal >::operator()(), and scim::Signal1< void, P1, IgnoreMarshal >::operator()().
Function operator; calls emit().
References scim::Signal1< R, P1, Marshal >::emit().