Ark Server API (ASE) - Wiki
Loading...
Searching...
No Matches
Poco::AbstractDelegate< TArgs > Class Template Referenceabstract

Base class for Delegate and Expire. More...

#include <AbstractDelegate.h>

Public Member Functions

 AbstractDelegate ()
 
 AbstractDelegate (const AbstractDelegate &)
 
virtual ~AbstractDelegate ()
 
virtual bool notify (const void *sender, TArgs &arguments)=0
 
virtual bool equals (const AbstractDelegate &other) const =0
 
virtual AbstractDelegateclone () const =0
 Compares the AbstractDelegate with the other one for equality.
 
virtual void disable ()=0
 Returns a deep copy of the AbstractDelegate.
 
virtual const AbstractDelegateunwrap () const
 Disables the delegate, which is done prior to removal.
 

Detailed Description

template<class TArgs>
class Poco::AbstractDelegate< TArgs >

Base class for Delegate and Expire.

Definition at line 28 of file AbstractDelegate.h.

Constructor & Destructor Documentation

◆ AbstractDelegate() [1/2]

template<class TArgs >
Poco::AbstractDelegate< TArgs >::AbstractDelegate ( )
inline

Definition at line 32 of file AbstractDelegate.h.

◆ AbstractDelegate() [2/2]

template<class TArgs >
Poco::AbstractDelegate< TArgs >::AbstractDelegate ( const AbstractDelegate< TArgs > & )
inline

Definition at line 36 of file AbstractDelegate.h.

◆ ~AbstractDelegate()

template<class TArgs >
virtual Poco::AbstractDelegate< TArgs >::~AbstractDelegate ( )
inlinevirtual

Definition at line 40 of file AbstractDelegate.h.

Member Function Documentation

◆ clone()

template<class TArgs >
virtual AbstractDelegate * Poco::AbstractDelegate< TArgs >::clone ( ) const
pure virtual

Compares the AbstractDelegate with the other one for equality.

◆ disable()

template<class TArgs >
virtual void Poco::AbstractDelegate< TArgs >::disable ( )
pure virtual

Returns a deep copy of the AbstractDelegate.

◆ equals()

template<class TArgs >
virtual bool Poco::AbstractDelegate< TArgs >::equals ( const AbstractDelegate< TArgs > & other) const
pure virtual

Invokes the delegate's callback function. Returns true if successful, or false if the delegate has been disabled or has expired.

◆ notify()

template<class TArgs >
virtual bool Poco::AbstractDelegate< TArgs >::notify ( const void * sender,
TArgs & arguments )
pure virtual

◆ unwrap()

template<class TArgs >
virtual const AbstractDelegate * Poco::AbstractDelegate< TArgs >::unwrap ( ) const
inlinevirtual

Disables the delegate, which is done prior to removal.

Returns the unwrapped delegate. Must be overridden by decorators like Expire.

Definition at line 58 of file AbstractDelegate.h.


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