Library: Foundation
Package: Events
Header: Poco/FIFOStrategy.h
Direct Base Classes: NotificationStrategy < TArgs, TDelegate >
All Base Classes: NotificationStrategy < TArgs, TDelegate >
Member Functions: add, clear, empty, notify, operator =, remove
typedef typename DelegateIndex::const_iterator ConstIndexIterator;
typedef typename Delegates::const_iterator ConstIterator;
typedef std::map < TDelegate *, Iterator, TCompare > DelegateIndex;
typedef std::list < TDelegate * > Delegates;
typedef typename DelegateIndex::iterator IndexIterator;
typedef typename Delegates::iterator Iterator;
FIFOStrategy();
FIFOStrategy(
const FIFOStrategy & s
);
~FIFOStrategy();
void add(
const TDelegate & delegate
);
void clear();
bool empty() const;
void notify(
const void * sender,
TArgs & arguments
);
FIFOStrategy & operator = (
const FIFOStrategy & s
);
void remove(
const TDelegate & delegate
);
DelegateIndex _observerIndex;
For faster lookup when add/remove is used.
Delegates _observers;
Stores the delegates in the order they were added.