Library: Foundation
Package: Events
Header: Poco/AbstractDelegate.h
Interface for Delegate and Expire Very similar to AbstractPriorityDelegate but having two separate files (no inheritance) allows one to have compile-time checks when registering an observer instead of run-time checks.
Member Functions: clone, notify, operator <, target
AbstractDelegate(
void * pTarget
);
AbstractDelegate(
const AbstractDelegate & del
);
virtual ~AbstractDelegate();
virtual AbstractDelegate * clone() const = 0;
Returns a deep-copy of the AbstractDelegate
virtual bool notify(
const void * sender,
TArgs & arguments
) = 0;
Returns false, if the Delegate is no longer valid, thus indicating an expire
bool operator < (
const AbstractDelegate < TArgs > & other
) const;
For comparing AbstractDelegates in a collection.
void * target() const;
void * _pTarget;