#include <FUEvent.h>
Public Member Functions | |
FUEvent2 () | |
Constructor. | |
~FUEvent2 () | |
Destructor. | |
size_t | GetHandlerCount () |
Retrieves the number of callbacks registered for this event. | |
template<class Class> | |
void | InsertHandler (Class *handle, void(Class::*_function)(Arg1, Arg2)) |
Adds a new callback that handles the event. | |
void | InsertHandler (Handler *functor) |
Adds a functor that handles the event. | |
void | InsertHandler (void(*_function)(Arg1, Arg2)) |
Adds a new callback that handles the event. | |
void | ReleaseHandler (void *handle, void *function) |
Releases and unregisters a callback that handles the event. | |
template<class Class> | |
void | ReleaseHandler (Class *handle, void(Class::*_function)(Arg1, Arg2)) |
Releases and unregisters a callback that handles the event. | |
void | ReleaseHandler (void(*_function)(Arg1, Arg2)) |
Releases and unregisters a callback that handles the event. | |
void | operator() (Arg1 argument1, Arg2 argument2) |
Triggers the event. |
|
Retrieves the number of callbacks registered for this event.
|
|
Adds a new callback that handles the event.
|
|
Adds a functor that handles the event. Note that the event will own the memory for the functor.
|
|
Adds a new callback that handles the event.
|
|
Triggers the event. All the registered callbacks will be called, in reverse-order of their registration.
|
|
Releases and unregisters a callback that handles the event.
|
|
Releases and unregisters a callback that handles the event.
|
|
Releases and unregisters a callback that handles the event.
|