Poco

template < class TObj, class TArgs, bool withSender = true >

class Delegate

File Information

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

Inheritance

Direct Base Classes: AbstractDelegate < TArgs >

All Base Classes: AbstractDelegate < TArgs >

Member Summary

Member Functions: clone, disable, equals, notify, operator =

Types

void

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

Constructors

Delegate inline

Delegate(
    const Delegate & delegate
);

Delegate inline

Delegate(
    TObj * obj,
    NotifyMethod method
);

Destructor

~Delegate inline

~Delegate();

Member Functions

clone inline

AbstractDelegate < TArgs > * clone() const;

disable inline

void disable();

equals inline

bool equals(
    const AbstractDelegate < TArgs > & other
) const;

notify inline

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

operator = inline

Delegate & operator = (
    const Delegate & delegate
);

Variables

_mutex protected

Mutex _mutex;

_receiverMethod protected

NotifyMethod _receiverMethod;

_receiverObject protected

TObj * _receiverObject;