Ark Server API (ASE) - Wiki
|
#include <BasicEvent.h>
Public Member Functions | |
BasicEvent () | |
~BasicEvent () | |
Public Member Functions inherited from Poco::AbstractEvent< TArgs, TStrategy, TDelegate, TMutex > | |
AbstractEvent () | |
AbstractEvent (const TStrategy &strat) | |
virtual | ~AbstractEvent () |
void | operator+= (const TDelegate &aDelegate) |
void | operator-= (const TDelegate &aDelegate) |
DelegateHandle | add (const TDelegate &aDelegate) |
void | remove (DelegateHandle delegateHandle) |
void | operator() (const void *pSender, TArgs &args) |
Shortcut for notify(pSender, args);. | |
void | operator() (TArgs &args) |
Shortcut for notify(args). | |
void | notify (const void *pSender, TArgs &args) |
bool | hasDelegates () const |
Returns true if there are registered delegates. | |
ActiveResult< TArgs > | notifyAsync (const void *pSender, const TArgs &args) |
void | enable () |
Enables the event. | |
void | disable () |
bool | isEnabled () const |
Returns true if event is enabled. | |
void | clear () |
Removes all delegates. | |
bool | empty () const |
Checks if any delegates are registered at the delegate. | |
Private Member Functions | |
BasicEvent (const BasicEvent &e) | |
BasicEvent & | operator= (const BasicEvent &e) |
Additional Inherited Members | |
Public Types inherited from Poco::AbstractEvent< TArgs, TStrategy, TDelegate, TMutex > | |
typedef TDelegate * | DelegateHandle |
typedef TArgs | Args |
Protected Member Functions inherited from Poco::AbstractEvent< TArgs, TStrategy, TDelegate, TMutex > | |
TArgs | executeAsyncImpl (const NotifyAsyncParams &par) |
Protected Attributes inherited from Poco::AbstractEvent< TArgs, TStrategy, TDelegate, TMutex > | |
ActiveMethod< TArgs, NotifyAsyncParams, AbstractEvent > | _executeAsync |
TStrategy | _strategy |
bool | _enabled |
The strategy used to notify observers. | |
TMutex | _mutex |
A BasicEvent uses the DefaultStrategy which invokes delegates in the order they have been registered.
Please see the AbstractEvent class template documentation for more information.
Definition at line 31 of file BasicEvent.h.
|
inline |
Definition at line 43 of file BasicEvent.h.
|
inline |
Definition at line 47 of file BasicEvent.h.
|
private |
|
private |