Medical Imaging Interaction Toolkit
2018.4.99-389bf124
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... | |
itk::SimpleFastMutexLock | 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 |
|
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 QmitkAbstractDataStorageModel::SetDataStorage(), QmitkDataStorageListModel::SetDataStorage(), mitk::DataStorageSelection::SetDataStorage(), and mitk::ToolManager::~ToolManager().
|
mutableprotected |
List of listeners.
This is declared mutable for a reason: Imagine an object that sends out notifications, e.g.
Now imaginge 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 431 of file mitkMessage.h.
Referenced by mitk::MessageBase< MessageAbstractDelegate3< double, double, bool, void > >::MessageBase(), and mitk::MessageBase< MessageAbstractDelegate3< double, double, bool, void > >::operator=().
|
mutableprotected |
Definition at line 432 of file mitkMessage.h.