FUEvent1< Arg1 > Class Template Reference
[Utility Classes.]

An event with one argument. More...

#include <FUEvent.h>

List of all members.

Public Member Functions

 FUEvent1 ()
 Constructor.
 ~FUEvent1 ()
 Destructor.
size_t GetHandlerCount ()
 Retrieves the number of callbacks registered for this event.
template<class Class>
void InsertHandler (Class *handle, void(Class::*_function)(Arg1))
 Adds a new callback that handles the event.
void InsertHandler (Handler *functor)
 Adds a functor that handles the event.
void InsertHandler (void(*_function)(Arg1))
 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))
 Releases and unregisters a callback that handles the event.
void ReleaseHandler (void(*_function)(Arg1))
 Releases and unregisters a callback that handles the event.
void operator() (Arg1 argument1)
 Triggers the event.


Detailed Description

template<class Arg1>
class FUEvent1< Arg1 >

An event with one argument.


Member Function Documentation

template<class Arg1>
size_t FUEvent1< Arg1 >::GetHandlerCount  )  [inline]
 

Retrieves the number of callbacks registered for this event.

Returns:
The number of callbacks registered.

template<class Arg1>
void FUEvent1< Arg1 >::InsertHandler void(*)(Arg1)  _function  )  [inline]
 

Adds a new callback that handles the event.

Parameters:
_function The static function to callback.

template<class Arg1>
void FUEvent1< Arg1 >::InsertHandler Handler functor  )  [inline]
 

Adds a functor that handles the event.

Note that the event will own the memory for the functor.

Parameters:
functor The functor that handlers the event.

template<class Arg1>
template<class Class>
void FUEvent1< Arg1 >::InsertHandler Class *  handle,
void(Class::*)(Arg1)  _function
[inline]
 

Adds a new callback that handles the event.

Parameters:
handle The object that contains the member function.
_function The member function to callback.

template<class Arg1>
void FUEvent1< Arg1 >::operator() Arg1  argument1  )  [inline]
 

Triggers the event.

All the registered callbacks will be called, in reverse-order of their registration.

Parameters:
argument1 A first argument.

template<class Arg1>
void FUEvent1< Arg1 >::ReleaseHandler void(*)(Arg1)  _function  )  [inline]
 

Releases and unregisters a callback that handles the event.

Parameters:
_function The static function callback to unregister.

template<class Arg1>
template<class Class>
void FUEvent1< Arg1 >::ReleaseHandler Class *  handle,
void(Class::*)(Arg1)  _function
[inline]
 

Releases and unregisters a callback that handles the event.

Parameters:
handle The object that contains the member function.
_function The member function callback to unregister.

template<class Arg1>
void FUEvent1< Arg1 >::ReleaseHandler void *  handle,
void *  function
[inline]
 

Releases and unregisters a callback that handles the event.

Parameters:
handle The handle of the function container. This pointer will be NULL for static functions.
function The address of the function callback to unregister.


The documentation for this class was generated from the following file:
Generated on Thu Feb 14 16:58:40 2008 for FCollada by  doxygen 1.4.6-NO