A class for event processing. More...
#include <Event.hh>
Inherits Event.
Public Member Functions | |
EventT () | |
Constructor. | |
virtual | ~EventT () |
Destructor. | |
ConnectionPtr | Connect (const std::function< T > &_subscriber) |
Connect a callback to this event. | |
unsigned int | ConnectionCount () const |
Get the number of connections. | |
virtual void | Disconnect (int _id) |
Disconnect a callback to this event. | |
void | operator() () |
Access the signal. | |
template<typename P> | |
void | operator() (const P &_p) |
Signal the event with one parameter. | |
template<typename P1, typename P2> | |
void | operator() (const P1 &_p1, const P2 &_p2) |
Signal the event with two parameters. | |
template<typename P1, typename P2, typename P3> | |
void | operator() (const P1 &_p1, const P2 &_p2, const P3 &_p3) |
Signal the event with three parameters. | |
template<typename P1, typename P2, typename P3, typename P4> | |
void | operator() (const P1 &_p1, const P2 &_p2, const P3 &_p3, const P4 &_p4) |
Signal the event with four parameters. | |
template<typename P1, typename P2, typename P3, typename P4, typename P5> | |
void | operator() (const P1 &_p1, const P2 &_p2, const P3 &_p3, const P4 &_p4, const P5 &_p5) |
Signal the event with five parameters. | |
template<typename P1, typename P2, typename P3, typename P4, typename P5, typename P6> | |
void | operator() (const P1 &_p1, const P2 &_p2, const P3 &_p3, const P4 &_p4, const P5 &_p5, const P6 &_p6) |
Signal the event with six parameters. | |
template<typename P1, typename P2, typename P3, typename P4, typename P5, typename P6, typename P7> | |
void | operator() (const P1 &_p1, const P2 &_p2, const P3 &_p3, const P4 &_p4, const P5 &_p5, const P6 &_p6, const P7 &_p7) |
Signal the event with seven parameters. | |
template<typename P1, typename P2, typename P3, typename P4, typename P5, typename P6, typename P7, typename P8> | |
void | operator() (const P1 &_p1, const P2 &_p2, const P3 &_p3, const P4 &_p4, const P5 &_p5, const P6 &_p6, const P7 &_p7, const P8 &_p8) |
Signal the event with eight parameters. | |
template<typename P1, typename P2, typename P3, typename P4, typename P5, typename P6, typename P7, typename P8, typename P9> | |
void | operator() (const P1 &_p1, const P2 &_p2, const P3 &_p3, const P4 &_p4, const P5 &_p5, const P6 &_p6, const P7 &_p7, const P8 &_p8, const P9 &_p9) |
Signal the event with nine parameters. | |
template<typename P1, typename P2, typename P3, typename P4, typename P5, typename P6, typename P7, typename P8, typename P9, typename P10> | |
void | operator() (const P1 &_p1, const P2 &_p2, const P3 &_p3, const P4 &_p4, const P5 &_p5, const P6 &_p6, const P7 &_p7, const P8 &_p8, const P9 &_p9, const P10 &_p10) |
Signal the event with ten parameters. | |
void | SetSignaled (const bool _sig) |
Set whether this event has been signaled. | |
void | Signal () |
Signal the event for all subscribers. | |
template<typename P> | |
void | Signal (const P &_p) |
Signal the event with one parameter. | |
template<typename P1, typename P2> | |
void | Signal (const P1 &_p1, const P2 &_p2) |
Signal the event with two parameter. | |
template<typename P1, typename P2, typename P3> | |
void | Signal (const P1 &_p1, const P2 &_p2, const P3 &_p3) |
Signal the event with three parameter. | |
template<typename P1, typename P2, typename P3, typename P4> | |
void | Signal (const P1 &_p1, const P2 &_p2, const P3 &_p3, const P4 &_p4) |
Signal the event with four parameter. | |
template<typename P1, typename P2, typename P3, typename P4, typename P5> | |
void | Signal (const P1 &_p1, const P2 &_p2, const P3 &_p3, const P4 &_p4, const P5 &_p5) |
Signal the event with five parameter. | |
template<typename P1, typename P2, typename P3, typename P4, typename P5, typename P6> | |
void | Signal (const P1 &_p1, const P2 &_p2, const P3 &_p3, const P4 &_p4, const P5 &_p5, const P6 &_p6) |
Signal the event with six parameter. | |
template<typename P1, typename P2, typename P3, typename P4, typename P5, typename P6, typename P7> | |
void | Signal (const P1 &_p1, const P2 &_p2, const P3 &_p3, const P4 &_p4, const P5 &_p5, const P6 &_p6, const P7 &_p7) |
Signal the event with seven parameter. | |
template<typename P1, typename P2, typename P3, typename P4, typename P5, typename P6, typename P7, typename P8> | |
void | Signal (const P1 &_p1, const P2 &_p2, const P3 &_p3, const P4 &_p4, const P5 &_p5, const P6 &_p6, const P7 &_p7, const P8 &_p8) |
Signal the event with eight parameter. | |
template<typename P1, typename P2, typename P3, typename P4, typename P5, typename P6, typename P7, typename P8, typename P9> | |
void | Signal (const P1 &_p1, const P2 &_p2, const P3 &_p3, const P4 &_p4, const P5 &_p5, const P6 &_p6, const P7 &_p7, const P8 &_p8, const P9 &_p9) |
Signal the event with nine parameter. | |
template<typename P1, typename P2, typename P3, typename P4, typename P5, typename P6, typename P7, typename P8, typename P9, typename P10> | |
void | Signal (const P1 &_p1, const P2 &_p2, const P3 &_p3, const P4 &_p4, const P5 &_p5, const P6 &_p6, const P7 &_p7, const P8 &_p8, const P9 &_p9, const P10 &_p10) |
Signal the event with ten parameter. | |
bool | Signaled () const |
Get whether this event has been signaled. | |
A class for event processing.
|
inline |
Access the signal.
References Signal().
|
inline |
|
inline |
Signal the event with two parameters.
[in] | _p1 | the first parameter. |
[in] | _p2 | the second parameter. |
References Signal().
|
inline |
Signal the event with three parameters.
[in] | _p1 | the first parameter. |
[in] | _p2 | the second parameter. |
[in] | _p3 | the second parameter. |
References Signal().
|
inline |
Signal the event with four parameters.
[in] | _p1 | the first parameter. |
[in] | _p2 | the second parameter. |
[in] | _p3 | the second parameter. |
[in] | _p4 | the first parameter. |
References Signal().
|
inline |
Signal the event with five parameters.
[in] | _p1 | the first parameter. |
[in] | _p2 | the second parameter. |
[in] | _p3 | the second parameter. |
[in] | _p4 | the first parameter. |
[in] | _p5 | the fift parameter. |
References Signal().
|
inline |
Signal the event with six parameters.
[in] | _p1 | the first parameter. |
[in] | _p2 | the second parameter. |
[in] | _p3 | the second parameter. |
[in] | _p4 | the first parameter. |
[in] | _p5 | the fift parameter. |
[in] | _p6 | the sixt parameter. |
References Signal().
|
inline |
Signal the event with seven parameters.
[in] | _p1 | the first parameter. |
[in] | _p2 | the second parameter. |
[in] | _p3 | the second parameter. |
[in] | _p4 | the first parameter. |
[in] | _p5 | the fifth parameter. |
[in] | _p6 | the sixth parameter. |
[in] | _p7 | the seventh parameter. |
References Signal().
|
inline |
Signal the event with eight parameters.
[in] | _p1 | the first parameter. |
[in] | _p2 | the second parameter. |
[in] | _p3 | the second parameter. |
[in] | _p4 | the first parameter. |
[in] | _p5 | the fifth parameter. |
[in] | _p6 | the sixth parameter. |
[in] | _p7 | the seventh parameter. |
[in] | _p8 | the eighth parameter. |
References Signal().
|
inline |
Signal the event with nine parameters.
[in] | _p1 | the first parameter. |
[in] | _p2 | the second parameter. |
[in] | _p3 | the second parameter. |
[in] | _p4 | the first parameter. |
[in] | _p5 | the fifth parameter. |
[in] | _p6 | the sixth parameter. |
[in] | _p7 | the seventh parameter. |
[in] | _p8 | the eighth parameter. |
[in] | _p9 | the ninth parameter. |
References Signal().
|
inline |
Signal the event with ten parameters.
[in] | _p1 | the first parameter. |
[in] | _p2 | the second parameter. |
[in] | _p3 | the second parameter. |
[in] | _p4 | the first parameter. |
[in] | _p5 | the fifth parameter. |
[in] | _p6 | the sixth parameter. |
[in] | _p7 | the seventh parameter. |
[in] | _p8 | the eighth parameter. |
[in] | _p9 | the ninth parameter. |
[in] | _p10 | the tenth parameter. |
References Signal().
|
inherited |
Set whether this event has been signaled.
[in] | _sig | True if the event has been signaled. |
Referenced by EventT< T >::Signal(), EventT< T >::Signal(), EventT< T >::Signal(), EventT< T >::Signal(), EventT< T >::Signal(), EventT< T >::Signal(), EventT< T >::Signal(), EventT< T >::Signal(), EventT< T >::Signal(), EventT< T >::Signal(), and EventT< T >::Signal().
|
inline |
Signal the event for all subscribers.
References Event::SetSignaled().
Referenced by operator()(), operator()(), operator()(), operator()(), operator()(), operator()(), operator()(), operator()(), operator()(), operator()(), and operator()().
|
inline |
|
inline |
Signal the event with two parameter.
[in] | _p1 | the first parameter. |
[in] | _p2 | the second parameter. |
References Event::SetSignaled().
|
inline |
Signal the event with three parameter.
[in] | _p1 | the first parameter. |
[in] | _p2 | the second parameter. |
[in] | _p3 | the second parameter. |
References Event::SetSignaled().
|
inline |
Signal the event with four parameter.
[in] | _p1 | the first parameter. |
[in] | _p2 | the second parameter. |
[in] | _p3 | the second parameter. |
[in] | _p4 | the first parameter. |
References Event::SetSignaled().
|
inline |
Signal the event with five parameter.
[in] | _p1 | the first parameter. |
[in] | _p2 | the second parameter. |
[in] | _p3 | the second parameter. |
[in] | _p4 | the first parameter. |
[in] | _p5 | the fifth parameter. |
References Event::SetSignaled().
|
inline |
Signal the event with six parameter.
[in] | _p1 | the first parameter. |
[in] | _p2 | the second parameter. |
[in] | _p3 | the second parameter. |
[in] | _p4 | the first parameter. |
[in] | _p5 | the fifth parameter. |
[in] | _p6 | the sixth parameter. |
References Event::SetSignaled().
|
inline |
Signal the event with seven parameter.
[in] | _p1 | the first parameter. |
[in] | _p2 | the second parameter. |
[in] | _p3 | the second parameter. |
[in] | _p4 | the first parameter. |
[in] | _p5 | the fifth parameter. |
[in] | _p6 | the sixth parameter. |
[in] | _p7 | the seventh parameter. |
References Event::SetSignaled().
|
inline |
Signal the event with eight parameter.
[in] | _p1 | the first parameter. |
[in] | _p2 | the second parameter. |
[in] | _p3 | the second parameter. |
[in] | _p4 | the first parameter. |
[in] | _p5 | the fifth parameter. |
[in] | _p6 | the sixth parameter. |
[in] | _p7 | the seventh parameter. |
[in] | _p8 | the eighth parameter. |
References Event::SetSignaled().
|
inline |
Signal the event with nine parameter.
[in] | _p1 | the first parameter. |
[in] | _p2 | the second parameter. |
[in] | _p3 | the second parameter. |
[in] | _p4 | the first parameter. |
[in] | _p5 | the fifth parameter. |
[in] | _p6 | the sixth parameter. |
[in] | _p7 | the seventh parameter. |
[in] | _p8 | the eighth parameter. |
[in] | _p9 | the ninth parameter. |
References Event::SetSignaled().
|
inline |
Signal the event with ten parameter.
[in] | _p1 | the first parameter. |
[in] | _p2 | the second parameter. |
[in] | _p3 | the second parameter. |
[in] | _p4 | the first parameter. |
[in] | _p5 | the fifth parameter. |
[in] | _p6 | the sixth parameter. |
[in] | _p7 | the seventh parameter. |
[in] | _p8 | the eighth parameter. |
[in] | _p9 | the ninth parameter. |
[in] | _p10 | the tenth parameter. |
References Event::SetSignaled().
|
inherited |
Get whether this event has been signaled.