21 SignalHandlerResult handler0(Test&)
23 return SIGNAL_CONTINUE_EMISSION;
25 typedef Function1<Test&, SignalHandlerResult, handler0> TestHandler0;
31 typedef Function1<Test&, int, function0> TestFunction0;
33 SignalHandlerResult handler1(Test&, A1)
35 return SIGNAL_CONTINUE_EMISSION;
37 typedef Function2<Test&, A1, SignalHandlerResult, handler1> TestHandler1;
39 void function1(Test&, A1)
42 typedef ReferenceCaller1<Test, A1, function1> TestFunction1;
44 SignalHandlerResult handler2(Test&, A1, A2)
46 return SIGNAL_CONTINUE_EMISSION;
48 typedef Function3<Test&, A1, A2, SignalHandlerResult, handler2> TestHandler2;
50 void function2(Test&, A1, A2)
53 typedef Function3<Test&, A1, A2, void, function2> TestFunction2;
55 SignalHandlerResult handler3(Test&, A1, A2, A3)
57 return SIGNAL_CONTINUE_EMISSION;
59 typedef Function4<Test&, A1, A2, A3, SignalHandlerResult, handler3> TestHandler3;
61 void function3(Test&, A1, A2, A3)
64 typedef Function4<Test&, A1, A2, A3, void, function3> TestFunction3;
71 Signal0::handler_id_type a = e0.connectLast(makeSignalHandler(TestHandler0(), test)); // signal handler from direct caller returning result
72 Signal0::handler_id_type b = e0.connectFirst(makeSignalHandler(TestFunction0(), test)); // signal handler from direct caller returning int
78 typedef Signal1<A1> Signal1Test;
80 Signal1Test::handler_id_type a = e1.connectLast(makeSignalHandler1(TestHandler1(), test)); // signal handler from direct caller with one argument, returning result
81 Signal1Test::handler_id_type b = e1.connectFirst(makeSignalHandler1(TestFunction1(test))); // signal handler from opaque caller with one argument, returning void
87 typedef Signal2<A1, A2> Signal2Test;
89 Signal2Test::handler_id_type a = e2.connectLast(makeSignalHandler2(TestHandler2(), test)); // signal handler from direct caller with two arguments, returning result
90 Signal2Test::handler_id_type b = e2.connectLast(makeSignalHandler2(TestFunction2(), test)); // signal handler from direct caller with two arguments, returning void
96 typedef Signal3<A1, A2, A3> Signal3Test;
98 Signal3Test::handler_id_type a = e3.connectLast(makeSignalHandler3(TestHandler3(), test)); // signal handler from direct caller with three arguments, returning result
99 Signal3Test::handler_id_type b = e3.connectLast(makeSignalHandler3(TestFunction3(), test)); // signal handler from direct caller with three arguments, returning void
100 e3(A1(), A2(), A3());