Tekkotsu Homepage | Demos | Overview | Downloads | Dev. Resources | Reference | Credits |
EventCallbackAs< EV > Class Template ReferenceListens for a specified event and then forwards to the specified callback. More...
Inheritance diagram for EventCallbackAs< EV >:
Detailed Descriptiontemplate<class EV>
|
Public Member Functions | |
template<typename F > | |
EventCallbackAs (const F &cb) | |
constructor, pass zero-argument callback function | |
template<typename F , typename C > | |
EventCallbackAs (const F &cb, C &userdata) | |
constructor, pass the user data and single argument callback function | |
template<typename F , typename C > | |
EventCallbackAs (const F &cb, const C &userdata) | |
constructor, pass the user data and single argument callback function | |
template<typename F > | |
void | redirect (const F &cb) |
constructor, pass zero-argument callback function | |
template<typename F , typename C > | |
void | redirect (const F &cb, C &userdata) |
constructor, pass the user data and single argument callback function | |
template<typename F , typename C > | |
void | redirect (const F &cb, const C &userdata) |
constructor, pass the user data and single argument callback function | |
~EventCallbackAs () | |
destructor | |
Protected Member Functions | |
virtual void | processEvent (const EventBase &event) |
Protected Attributes | |
FunctorAdapter * | fun |
Private Member Functions | |
EventCallbackAs (const EventCallbackAs &) | |
don't call | |
EventCallbackAs & | operator= (const EventCallbackAs &) |
don't call |
constructor, pass zero-argument callback function
Definition at line 17 of file EventCallback.h.
EventCallbackAs< EV >::EventCallbackAs | ( | const F & | cb, | |
C & | userdata | |||
) |
constructor, pass the user data and single argument callback function
Definition at line 21 of file EventCallback.h.
EventCallbackAs< EV >::EventCallbackAs | ( | const F & | cb, | |
const C & | userdata | |||
) |
constructor, pass the user data and single argument callback function
Definition at line 25 of file EventCallback.h.
EventCallbackAs< EV >::~EventCallbackAs | ( | ) |
destructor
Definition at line 40 of file EventCallback.h.
EventCallbackAs< EV >::EventCallbackAs | ( | const EventCallbackAs< EV > & | ) | [private] |
don't call
EventCallbackAs& EventCallbackAs< EV >::operator= | ( | const EventCallbackAs< EV > & | ) | [private] |
don't call
virtual void EventCallbackAs< EV >::processEvent | ( | const EventBase & | event | ) | [protected, virtual] |
Implements EventListener.
Definition at line 107 of file EventCallback.h.
void EventCallbackAs< EV >::redirect | ( | const F & | cb, | |
const C & | userdata | |||
) |
constructor, pass the user data and single argument callback function
Definition at line 37 of file EventCallback.h.
void EventCallbackAs< EV >::redirect | ( | const F & | cb, | |
C & | userdata | |||
) |
constructor, pass the user data and single argument callback function
Definition at line 33 of file EventCallback.h.
constructor, pass zero-argument callback function
Definition at line 29 of file EventCallback.h.
FunctorAdapter* EventCallbackAs< EV >::fun [protected] |
Definition at line 115 of file EventCallback.h.
Referenced by EventCallbackAs< EventBase >::redirect(), and EventCallbackAs< EventBase >::~EventCallbackAs().
Tekkotsu v5.1CVS |
Generated Mon May 9 04:59:07 2016 by Doxygen 1.6.3 |