scim
1.4.18
|
A template for a signal passing four arguments of type P1, P2, P3 and P4, and returning a value of type R. More...
#include <scim_signals.h>
Public Types | |
typedef Slot4< R, P1, P2, P3, P4 > | SlotType |
Function signature for handlers connecting to the signal. More... | |
Public Member Functions | |
Connection | connect (SlotType *slot) |
SlotType * | slot () |
R | emit (P1 p1, P2 p2, P3 p3, P4 p4) |
R | operator() (P1 p1, P2 p2, P3 p3, P4 p4) |
Function operator; calls emit(). More... | |
![]() | |
Signal () | |
Constructor. More... | |
virtual | ~Signal () |
Destructor. More... | |
SlotNode * | connect (Slot *slot) |
Creates a new SlotNode for slot and adds it to the connection_list. More... | |
Additional Inherited Members | |
![]() | |
typedef std::vector< Pointer< SlotNode > > | ConnectionList |
ConnectionList type. More... | |
![]() | |
ConnectionList | connection_list |
A list of all the slots connected to the signal. More... | |
A template for a signal passing four arguments of type P1, P2, P3 and P4, and returning a value of type R.
typedef Slot4<R, P1, P2, P3, P4> scim::Signal4< R, P1, P2, P3, P4, Marshal >::SlotType |
Function signature for handlers connecting to the signal.
|
inline |
Connect a slot to the signal.
slot | - a slot of type Slot4<R, P1, P2, P3, P4>. |
The returned connection object can be used alter or change the connection.
References scim::Signal::connect(), and scim::Signal4< R, P1, P2, P3, P4, 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::Signal4< R, P1, P2, P3, P4, Marshal >::connect(), scim::Signal4< void, P1, P2, P3, P4, IgnoreMarshal >::connect(), scim::Signal4< R, P1, P2, P3, P4, Marshal >::emit(), and scim::Signal4< void, P1, P2, P3, P4, IgnoreMarshal >::emit().
|
inline |
Emit the signal.
p1 | - passes p1 to the signal handler. |
p2 | - passes p2 to the signal handler. |
p3 | - passes p3 to the signal handler. |
p4 | - passes p4 to the signal handler. |
Calls every slot connected to this signal, in order of connection.
References scim::Slot4< R, P1, P2, P3, P4 >::call(), scim::Signal::connection_list, and scim::Signal4< R, P1, P2, P3, P4, Marshal >::slot().
Referenced by scim::Signal4< R, P1, P2, P3, P4, Marshal >::operator()(), and scim::Signal4< void, P1, P2, P3, P4, IgnoreMarshal >::operator()().
|
inline |
Function operator; calls emit().
References scim::Signal4< R, P1, P2, P3, P4, Marshal >::emit().