Ark Server API (ASE) - Wiki
Loading...
Searching...
No Matches
Poco::BasicEvent< TArgs, TMutex > Class Template Reference

#include <BasicEvent.h>

+ Inheritance diagram for Poco::BasicEvent< TArgs, TMutex >:
+ Collaboration diagram for Poco::BasicEvent< TArgs, TMutex >:

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)
 
BasicEventoperator= (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
 

Detailed Description

template<class TArgs, class TMutex = FastMutex>
class Poco::BasicEvent< TArgs, TMutex >

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.

Constructor & Destructor Documentation

◆ BasicEvent() [1/2]

template<class TArgs , class TMutex = FastMutex>
Poco::BasicEvent< TArgs, TMutex >::BasicEvent ( )
inline

Definition at line 43 of file BasicEvent.h.

◆ ~BasicEvent()

template<class TArgs , class TMutex = FastMutex>
Poco::BasicEvent< TArgs, TMutex >::~BasicEvent ( )
inline

Definition at line 47 of file BasicEvent.h.

◆ BasicEvent() [2/2]

template<class TArgs , class TMutex = FastMutex>
Poco::BasicEvent< TArgs, TMutex >::BasicEvent ( const BasicEvent< TArgs, TMutex > & e)
private

Member Function Documentation

◆ operator=()

template<class TArgs , class TMutex = FastMutex>
BasicEvent & Poco::BasicEvent< TArgs, TMutex >::operator= ( const BasicEvent< TArgs, TMutex > & e)
private

The documentation for this class was generated from the following file: