#include <Event.h>
Public Member Functions | |
BasicEvent () | |
virtual | ~BasicEvent () |
Private Member Functions | |
BasicEvent (const BasicEvent &e) | |
BasicEvent & | operator= (const BasicEvent &e) |
A BasicEvent uses internally a DefaultStrategy which invokes delegates in an arbitrary manner. Note that an object can only register one method to a BasicEvent. Subsequent registrations will overwrite the existing delegate.
BasicEvent<int> event; MyClass myObject; event += karto::delegate(&myObject, &MyClass::myMethod1); event += karto::delegate(&myObject, &MyClass::myMethod2);
The second registration will overwrite the first one. The reason is simply that function pointers can only be compared by equality but not by lower than.
karto::BasicEvent< TArgs >::BasicEvent | ( | ) | [inline] |
virtual karto::BasicEvent< TArgs >::~BasicEvent | ( | ) | [inline, virtual] |
karto::BasicEvent< TArgs >::BasicEvent | ( | const BasicEvent< TArgs > & | e | ) | [private] |
BasicEvent& karto::BasicEvent< TArgs >::operator= | ( | const BasicEvent< TArgs > & | e | ) | [private] |