Medical Imaging Interaction Toolkit
2024.12.99-0da743f6
Medical Imaging Interaction Toolkit
|
#include <mitkMessage.h>
Public Types | |
typedef std::vector< AbstractDelegate * > | ListenerList |
Public Member Functions | |
virtual | ~MessageBase () |
MessageBase () | |
MessageBase (const MessageBase &o) | |
MessageBase & | operator= (const MessageBase &o) |
void | AddListener (const AbstractDelegate &delegate) const |
void | operator+= (const AbstractDelegate &delegate) const |
void | RemoveListener (const AbstractDelegate &delegate) const |
void | operator-= (const AbstractDelegate &delegate) const |
const ListenerList & | GetListeners () const |
bool | HasListeners () const |
bool | IsEmpty () const |
Protected Attributes | |
ListenerList | m_Listeners |
List of listeners. More... | |
std::mutex | m_Mutex |
Definition at line 345 of file mitkMessage.h.
typedef std::vector<AbstractDelegate *> mitk::MessageBase< AbstractDelegate >::ListenerList |
Definition at line 348 of file mitkMessage.h.
|
inlinevirtual |
Definition at line 350 of file mitkMessage.h.
|
inline |
Definition at line 358 of file mitkMessage.h.
|
inline |
Definition at line 359 of file mitkMessage.h.
|
inline |
Definition at line 374 of file mitkMessage.h.
Referenced by mitk::MessageBase< MessageAbstractDelegate3< double, double, bool, void > >::operator+=().
|
inline |
Definition at line 410 of file mitkMessage.h.
|
inline |
Definition at line 411 of file mitkMessage.h.
|
inline |
Definition at line 412 of file mitkMessage.h.
|
inline |
Definition at line 392 of file mitkMessage.h.
|
inline |
Definition at line 409 of file mitkMessage.h.
|
inline |
Definition at line 367 of file mitkMessage.h.
|
inline |
Definition at line 393 of file mitkMessage.h.
Referenced by mitk::MessageBase< MessageAbstractDelegate3< double, double, bool, void > >::operator-=().
|
mutableprotected |
List of listeners.
This is declared mutable for a reason: Imagine an object that sends out notifications and someone gets a const Database
object, because he/she should not write to the database. He/she should anyway be able to register for notifications about changes in the database – this is why AddListener and RemoveListener are declared const
. m_Listeners must be mutable so that AddListener and RemoveListener can modify it regardless of the object's constness.
Definition at line 423 of file mitkMessage.h.
Referenced by mitk::MessageBase< MessageAbstractDelegate3< double, double, bool, void > >::AddListener(), mitk::MessageBase< MessageAbstractDelegate3< double, double, bool, void > >::GetListeners(), mitk::MessageBase< MessageAbstractDelegate3< double, double, bool, void > >::HasListeners(), mitk::MessageBase< MessageAbstractDelegate3< double, double, bool, void > >::IsEmpty(), mitk::MessageBase< MessageAbstractDelegate3< double, double, bool, void > >::MessageBase(), mitk::MessageBase< MessageAbstractDelegate3< double, double, bool, void > >::operator=(), mitk::MessageBase< MessageAbstractDelegate3< double, double, bool, void > >::RemoveListener(), and mitk::MessageBase< MessageAbstractDelegate3< double, double, bool, void > >::~MessageBase().
|
mutableprotected |
Definition at line 424 of file mitkMessage.h.
Referenced by mitk::MessageBase< MessageAbstractDelegate3< double, double, bool, void > >::AddListener(), and mitk::MessageBase< MessageAbstractDelegate3< double, double, bool, void > >::RemoveListener().