#include <Event.h>
Public Member Functions | |
BasicEvent () | |
virtual | ~BasicEvent () |
![]() | |
AbstractEvent () | |
AbstractEvent (const DefaultStrategy< TArgs > &rStrategy) | |
void | Clear () |
void | Disable () |
void | Enable () |
kt_bool | IsEmpty () const |
kt_bool | IsEnabled () const |
void | Notify (const void *pSender, TArgs &rArgs) |
void | operator() (const void *pSender, TArgs &args) |
void | operator+= (const AbstractDelegate< TArgs > &rDelegate) |
void | operator-= (const AbstractDelegate< TArgs > &rDelegate) |
virtual | ~AbstractEvent () |
Private Member Functions | |
BasicEvent (const BasicEvent &e) | |
BasicEvent & | operator= (const BasicEvent &e) |
Additional Inherited Members | |
![]() | |
kt_bool | m_Enabled |
Mutex | m_Mutex |
DefaultStrategy< TArgs > | m_Strategy |
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.
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.
|
inline |
|
inlinevirtual |
|
private |
|
private |