Medical Imaging Interaction Toolkit
2016.11.0
Medical Imaging Interaction Toolkit
|
Event/message/notification class. More...
#include <berryMessage.h>
Public Types | |
typedef Message | Self |
typedef MessageAbstractDelegate< A > | AbstractDelegate |
typedef DelegateList< AbstractDelegate >::ListType | ListenerList |
Public Member Functions | |
void | AddListener (const AbstractDelegate &delegate) const |
void | operator+= (const AbstractDelegate &delegate) const |
void | RemoveListener (const AbstractDelegate &delegate) const |
void | operator-= (const AbstractDelegate &delegate) const |
void | Send () const |
void | operator() () const |
void | SetExceptionHandler (const AbstractExceptionHandler &handler) |
AbstractExceptionHandler * | GetExceptionHandler () const |
ListenerList | GetListeners () const |
bool | HasListeners () const |
bool | IsEmpty () const |
Protected Attributes | |
DelegateList< AbstractDelegate > | delegates |
Event/message/notification class.
This class allows one class to send out messages and another class to receive these message. There are subclasses for sending parameters along with the messages.
This is an implementation of the Observer pattern.
Definition at line 720 of file berryMessage.h.
typedef MessageAbstractDelegate<A> berry::Message< A >::AbstractDelegate |
Definition at line 725 of file berryMessage.h.
typedef DelegateList<AbstractDelegate>::ListType berry::Message< A >::ListenerList |
Definition at line 726 of file berryMessage.h.
typedef Message berry::Message< A >::Self |
Definition at line 724 of file berryMessage.h.
|
inline |
Definition at line 728 of file berryMessage.h.
References berry::Message< A >::delegates.
Referenced by berry::Message< A >::operator+=().
|
inline |
Definition at line 763 of file berryMessage.h.
References berry::Message< A >::delegates.
|
inline |
Definition at line 768 of file berryMessage.h.
References berry::Message< A >::delegates.
|
inline |
Definition at line 773 of file berryMessage.h.
References berry::Message< A >::delegates.
|
inline |
Definition at line 778 of file berryMessage.h.
References berry::Message< A >::delegates.
|
inline |
Definition at line 753 of file berryMessage.h.
References berry::Message< A >::Send().
|
inline |
Definition at line 733 of file berryMessage.h.
References berry::Message< A >::AddListener().
|
inline |
Definition at line 743 of file berryMessage.h.
References berry::Message< A >::RemoveListener().
|
inline |
Definition at line 738 of file berryMessage.h.
References berry::Message< A >::delegates.
Referenced by berry::Message< A >::operator-=().
|
inline |
Definition at line 748 of file berryMessage.h.
References berry::Message< A >::delegates.
Referenced by berry::Message< A >::operator()(), and berry::Object::~Object().
|
inline |
Definition at line 758 of file berryMessage.h.
References berry::Message< A >::delegates.
|
protected |
Definition at line 785 of file berryMessage.h.
Referenced by berry::Message< A >::AddListener(), berry::Message< A >::GetExceptionHandler(), berry::Message< A >::GetListeners(), berry::Message< A >::HasListeners(), berry::Message< A >::IsEmpty(), berry::Message< A >::RemoveListener(), berry::Message< A >::Send(), and berry::Message< A >::SetExceptionHandler().