Medical Imaging Interaction Toolkit
2024.06.99-fe296c79
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 716 of file berryMessage.h.
typedef MessageAbstractDelegate<A> berry::Message< A >::AbstractDelegate |
Definition at line 721 of file berryMessage.h.
typedef DelegateList<AbstractDelegate>::ListType berry::Message< A >::ListenerList |
Definition at line 722 of file berryMessage.h.
typedef Message berry::Message< A >::Self |
Definition at line 720 of file berryMessage.h.
|
inline |
Definition at line 724 of file berryMessage.h.
References berry::Message< A >::delegates.
Referenced by berry::Message< A >::operator+=().
|
inline |
Definition at line 759 of file berryMessage.h.
References berry::Message< A >::delegates.
|
inline |
Definition at line 764 of file berryMessage.h.
References berry::Message< A >::delegates.
|
inline |
Definition at line 769 of file berryMessage.h.
References berry::Message< A >::delegates.
|
inline |
Definition at line 774 of file berryMessage.h.
References berry::Message< A >::delegates.
|
inline |
Definition at line 749 of file berryMessage.h.
References berry::Message< A >::Send().
|
inline |
Definition at line 729 of file berryMessage.h.
References berry::Message< A >::AddListener().
|
inline |
Definition at line 739 of file berryMessage.h.
References berry::Message< A >::RemoveListener().
|
inline |
Definition at line 734 of file berryMessage.h.
References berry::Message< A >::delegates.
Referenced by berry::Message< A >::operator-=().
|
inline |
Definition at line 744 of file berryMessage.h.
References berry::Message< A >::delegates.
Referenced by berry::Message< A >::operator()().
|
inline |
Definition at line 754 of file berryMessage.h.
References berry::Message< A >::delegates.
|
protected |
Definition at line 781 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().