template class Poco::PriorityDelegate<TObj, void, true>

Overview

#include <PriorityDelegate.h>

template <class TObj>
class PriorityDelegate<TObj, void, true>: public Poco::AbstractPriorityDelegate
{
public:
    // typedefs

    typedef void(TObj::* NotifyMethod)(const void *);

    // construction

    PriorityDelegate(
        TObj* obj,
        NotifyMethod method,
        int prio
        );

    PriorityDelegate(const PriorityDelegate& delegate);

    // methods

    PriorityDelegate&
    operator=(const PriorityDelegate& delegate);

    virtual
    bool
    notify(const void* sender);

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

    virtual
    AbstractDelegate<void>*
    clone() const;

    virtual
    void
    disable();

protected:
    // fields

    TObj* _receiverObject;
    NotifyMethod _receiverMethod;
    Mutex _mutex;
};

Inherited Members

public:
    // methods

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

    virtual
    bool
    equals(const AbstractDelegate& other) const = 0;

    virtual
    AbstractDelegate*
    clone() const = 0;

    virtual
    void
    disable() = 0;

    virtual
    const AbstractDelegate*
    unwrap() const;

    int
    priority() const;

protected:
    // fields

    int _priority;

Detailed Documentation

Methods

virtual
bool
notify(const void* sender)

Invokes the delegate’s callback function.

Returns true if successful, or false if the delegate has been disabled or has expired.

virtual
AbstractDelegate<void>*
clone() const

Returns a deep copy of the AbstractDelegate.

virtual
void
disable()

Disables the delegate, which is done prior to removal.