Medical Imaging Interaction Toolkit  2018.4.99-3e3f1a6e
Medical Imaging Interaction Toolkit
mitk::Identifiable Class Reference

Base class of identifiable objects. More...

#include <mitkIdentifiable.h>

Inheritance diagram for mitk::Identifiable:

Public Types

using UIDType = std::string
 

Public Member Functions

 Identifiable ()
 
 Identifiable (const UIDType &uid)
 
 Identifiable (const Identifiable &)=delete
 
 Identifiable (Identifiable &&) noexcept
 
virtual ~Identifiable ()
 
Identifiableoperator= (const Identifiable &)=delete
 
Identifiableoperator= (Identifiable &&other) noexcept
 
UIDType GetUID () const
 Get unique ID of an object. More...
 

Detailed Description

Base class of identifiable objects.

If you want to change the unique ID after creation time, you can use the mitk::UIDManipulator class. The reationale behind this pattern is to ensure that you think twice before doing this. It is intended to be used by data readers if necessary at all.

Definition at line 29 of file mitkIdentifiable.h.

Member Typedef Documentation

◆ UIDType

using mitk::Identifiable::UIDType = std::string

Definition at line 32 of file mitkIdentifiable.h.

Constructor & Destructor Documentation

◆ Identifiable() [1/4]

mitk::Identifiable::Identifiable ( )

Definition at line 21 of file mitkIdentifiable.cpp.

References mitk::UIDGenerator::GetUID().

◆ Identifiable() [2/4]

mitk::Identifiable::Identifiable ( const UIDType uid)
explicit

Definition at line 28 of file mitkIdentifiable.cpp.

◆ Identifiable() [3/4]

mitk::Identifiable::Identifiable ( const Identifiable )
delete

◆ Identifiable() [4/4]

mitk::Identifiable::Identifiable ( Identifiable &&  other)
noexcept

Definition at line 34 of file mitkIdentifiable.cpp.

◆ ~Identifiable()

mitk::Identifiable::~Identifiable ( )
virtual

Definition at line 40 of file mitkIdentifiable.cpp.

Member Function Documentation

◆ GetUID()

mitk::Identifiable::UIDType mitk::Identifiable::GetUID ( ) const

Get unique ID of an object.

Returns
Empty string if an object has no unique ID.

Definition at line 54 of file mitkIdentifiable.cpp.

Referenced by mitk::NodePredicateDataUID::CheckNode(), and QmitkImageStatisticsDataGenerator::GenerateStatisticsNodeName().

◆ operator=() [1/2]

Identifiable& mitk::Identifiable::operator= ( const Identifiable )
delete

◆ operator=() [2/2]

mitk::Identifiable & mitk::Identifiable::operator= ( Identifiable &&  other)
noexcept

Definition at line 45 of file mitkIdentifiable.cpp.


The documentation for this class was generated from the following files: