Poco

template < class TArgs, bool hasSender = true, bool senderIsConst = true >

class FunctionDelegate

Library: Foundation
Package: Events
Header: Poco/FunctionDelegate.h

Description

Wraps a C style function (or a C++ static fucntion) to be used as a delegate

Inheritance

Direct Base Classes: AbstractDelegate < TArgs >

All Base Classes: AbstractDelegate < TArgs >

Member Summary

Member Functions: clone, notify, operator =

Types

void

typedef void (* NotifyMethod)(const void *, TArgs &);

Constructors

FunctionDelegate inline

FunctionDelegate(
    NotifyMethod method
);

FunctionDelegate inline

FunctionDelegate(
    const FunctionDelegate & delegate
);

Destructor

~FunctionDelegate inline

~FunctionDelegate();

Member Functions

clone inline

AbstractDelegate < TArgs > * clone() const;

notify inline

bool notify(
    const void * sender,
    TArgs & arguments
);

operator = inline

FunctionDelegate & operator = (
    const FunctionDelegate & delegate
);

Variables

_receiverMethod protected

NotifyMethod _receiverMethod;