C++ template to call every registered listener function. More...
#include "base/globals.hh"Go to the source code of this file.
Classes | |
| class | base::Event< EVENT > |
| Broadcasts events to registered listener functors. More... | |
| class | base::Event< EVENT >::ListenerFunctor |
| Listener functor called when event is broadcast. More... | |
Namespaces | |
| namespace | base |
Library of base code. | |
Defines | |
| #define | CLASS_EVENT_LISTENER(LISTENER_CLASS, EVENT_CLASS, OWNER_CLASS, OWNER_MEMBER) |
| #define | CLASS_EVENT_LISTENER_BASIC(LISTENER_CLASS, EVENT_CLASS) |
C++ template to call every registered listener function.
| #define CLASS_EVENT_LISTENER | ( | LISTENER_CLASS, | ||
| EVENT_CLASS, | ||||
| OWNER_CLASS, | ||||
| OWNER_MEMBER | ||||
| ) |
class LISTENER_CLASS : public base::Event<EVENT_CLASS>::ListenerFunctor \ { \ public: \ LISTENER_CLASS( OWNER_CLASS& obj ) : OWNER_MEMBER(obj) { } \ virtual ~LISTENER_CLASS() { } \ virtual void operator()( EVENT_CLASS ); \ /* EVENT_CLASS& faster but wrong if class is shptr<> */ \ private: /* shptr<> must never be passed as a reference */ \ OWNER_CLASS& OWNER_MEMBER; \ };
| #define CLASS_EVENT_LISTENER_BASIC | ( | LISTENER_CLASS, | ||
| EVENT_CLASS | ||||
| ) |
class LISTENER_CLASS : public base::Event<EVENT_CLASS>::ListenerFunctor \ { \ public: \ LISTENER_CLASS( void ) { } \ virtual ~LISTENER_CLASS() { } \ virtual void operator()( EVENT_CLASS ); \ };
Palomino Flight Simulator documents generated by doxygen 1.7.1 on Tue May 15 2012 22:40:10