#include <Notifier.h>
Inheritance diagram for ark::Notifier< Notification, Observer_t, Observed_t >:
Public Member Functions | |
virtual void | receiveNotification (Notification const ¬e) |
virtual void | addObserver (boost::shared_ptr< Observer_t > const &obj) |
virtual void | addObserver (boost::shared_ptr< Observer_t > const &obj, Observed_t const &obs) |
virtual void | addObserver (boost::shared_ptr< Observer_t > const &obj, Notification const ¬e) |
virtual void | removeObserver (boost::shared_ptr< Observer_t > &obj) |
virtual void | removeObserver (boost::shared_ptr< Observer_t > &obj, Observed_t const &observed) |
virtual void | removeObserver (boost::shared_ptr< Observer_t > &obj, Notification const ¬e) |
bool | isObserving (boost::shared_ptr< Observer_t > const &obj) |
Private Types | |
typedef std::set< ObserverInfo > | ObserverList |
typedef Loki::AssocVector< Observed_t const *, ObserverList > | ObserverObjectMap |
typedef Loki::AssocVector< typename Notification::Tag, ObserverList > | ObserverNotificationMap |
Private Member Functions | |
void | _notifyObserver (ObserverInfo &info, Notification const ¬e) |
void | _dispatchToObserver (Notification const ¬e, typename ObserverList::iterator i, ObserverList &list) |
Private Attributes | |
ObserverList | _observeAll |
ObserverObjectMap | _observeObject |
ObserverNotificationMap | _observeNotification |
Classes | |
struct | ObserverInfo |
Observer class is comparible for easy finding of registered observers. More... |
|
|
|
|
|
|
|
|
|
|
|
Reimplemented in ark::AsyncNotifier< Notification, Observer_t, Observed_t >. |
|
Reimplemented in ark::AsyncNotifier< Notification, Observer_t, Observed_t >. |
|
Reimplemented in ark::AsyncNotifier< Notification, Observer_t, Observed_t >. |
|
isObserving
Reimplemented in ark::AsyncNotifier< Notification, Observer_t, Observed_t >. |
|
receiveNotification Override of Observer_t function sends the notification to all registered observers.
Reimplemented in ark::AsyncNotifier< Notification, Observer_t, Observed_t >. |
|
Reimplemented in ark::AsyncNotifier< Notification, Observer_t, Observed_t >. |
|
Reimplemented in ark::AsyncNotifier< Notification, Observer_t, Observed_t >. |
|
removeObserver Reimplemented in ark::AsyncNotifier< Notification, Observer_t, Observed_t >. |
|
|
|
|
|
|