Library: Foundation
Package: Events
Header: Poco/FunctionDelegate.h
Wraps a freestanding function or static member function for use as a Delegate.
Direct Base Classes: AbstractDelegate < TArgs >
All Base Classes: AbstractDelegate < TArgs >
Member Functions: clone, disable, equals, notify, operator =
typedef void (* NotifyMethod)(const void *, TArgs &);
FunctionDelegate(
NotifyMethod method
);
FunctionDelegate(
const FunctionDelegate & delegate
);
~FunctionDelegate();
AbstractDelegate < TArgs > * clone() const;
void disable();
bool equals(
const AbstractDelegate < TArgs > & other
) const;
bool notify(
const void * sender,
TArgs & arguments
);
FunctionDelegate & operator = (
const FunctionDelegate & delegate
);
Mutex _mutex;
NotifyMethod _receiverMethod;