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