template<class TArgs>
class karto::BasicEvent< TArgs >
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.
Definition at line 990 of file Event.h.