Freeciv-3.3
|
#include <listener.h>
Public Types | |
typedef _type_ | type_t |
Static Public Member Functions | |
template<class _member_fct_ > | |
static void | invoke (_member_fct_ function) |
template<class _member_fct_ , class _arg1_t_ > | |
static void | invoke (_member_fct_ function, _arg1_t_ arg) |
template<class _member_fct_ , class _arg1_t_ , class _arg2_t_ > | |
static void | invoke (_member_fct_ function, _arg1_t_ arg1, _arg2_t_ arg2) |
Protected Member Functions | |
listener () | |
virtual | ~listener () |
void | listen () |
Static Private Attributes | |
static std::set< type_t * > | instances |
Definition at line 104 of file listener.h.
Definition at line 108 of file listener.h.
|
explicitprotected |
Constructor
Definition at line 142 of file listener.h.
Destructor
Definition at line 160 of file listener.h.
|
static |
Invokes a member function on all instances of an listener type. Template parameters are meant to be automatically deduced.
Zero-parameter overload.
function | The member function to call |
Definition at line 175 of file listener.h.
|
static |
Invokes a member function on all instances of an listener type. Template parameters are meant to be automatically deduced.
One-parameter overload.
function | The member function to call |
arg | The argument to call the function with |
Definition at line 195 of file listener.h.
Invokes a member function on all instances of an listener type. Template parameters are meant to be automatically deduced.
Two-parameters overload.
function | The member function to call |
arg1 | The first argument to pass to the function |
arg2 | The second argument to pass to the function |
Definition at line 216 of file listener.h.
Starts listening to events
Definition at line 149 of file listener.h.