template class Poco::PriorityStrategy<void, TDelegate>

Overview

NotificationStrategy for PriorityEvent. Moreā€¦

#include <PriorityStrategy.h>

template <class TDelegate>
class PriorityStrategy<void, TDelegate>
{
public:
    // typedefs

    typedef TDelegate* DelegateHandle;
    typedef SharedPtr<TDelegate> DelegatePtr;
    typedef std::vector<DelegatePtr> Delegates;
    typedef Delegates::iterator Iterator;

    // methods

    void
    notify(const void* sender);

    DelegateHandle
    add(const TDelegate& delegate);

    void
    remove(const TDelegate& delegate);

    void
    remove(DelegateHandle delegateHandle);

    PriorityStrategy&
    operator=(const PriorityStrategy& s);

    void
    clear();

    bool
    empty() const;

protected:
    // fields

    Delegates _delegates;
};

Detailed Documentation

NotificationStrategy for PriorityEvent.

Delegates are kept in a std::vector<>, ordered by their priority.