Library: Foundation
Package: Events
Header: Poco/BasicEvent.h
A BasicEvent uses internally a DefaultStrategy which invokes delegates in an arbitrary manner. Note that one object can only register one method to a BasicEvent. Subsequent registrations will overwrite the existing delegate. For example:
BasicEvent<int> event; MyClass myObject; event += delegate(&myObject, &MyClass::myMethod1); event += 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.
Direct Base Classes: AbstractEvent < TArgs, DefaultStrategy < TArgs, AbstractDelegate < TArgs >, p_less < AbstractDelegate < TArgs > > >, AbstractDelegate < TArgs > >
All Base Classes: AbstractEvent < TArgs, DefaultStrategy < TArgs, AbstractDelegate < TArgs >, p_less < AbstractDelegate < TArgs > > >, AbstractDelegate < TArgs > >
BasicEvent();
~BasicEvent();