Medical Imaging Interaction Toolkit  2018.4.99-87d68d9f
Medical Imaging Interaction Toolkit
mitk::WeakPointerProperty Class Reference

Property containing a smart-pointer. More...

#include <mitkWeakPointerProperty.h>

Inheritance diagram for mitk::WeakPointerProperty:
Collaboration diagram for mitk::WeakPointerProperty:

Public Types

typedef WeakPointerProperty Self
 
typedef BaseProperty Superclass
 
typedef itk::SmartPointer< SelfPointer
 
typedef itk::SmartPointer< const SelfConstPointer
 
typedef itk::WeakPointer< itk::Object > ValueType
 
- Public Types inherited from mitk::BaseProperty
typedef BaseProperty Self
 
typedef itk::Object Superclass
 
typedef itk::SmartPointer< SelfPointer
 
typedef itk::SmartPointer< const SelfConstPointer
 

Public Member Functions

virtual std::vector< std::string > GetClassHierarchy () const override
 
virtual const char * GetClassName () const
 
Pointer Clone () const
 
 ~WeakPointerProperty () override
 
ValueType GetWeakPointer () const
 
ValueType GetValue () const
 
void SetWeakPointer (itk::Object *pointer)
 
void SetValue (const ValueType &value)
 
std::string GetValueAsString () const override
 
- Public Member Functions inherited from mitk::BaseProperty
Pointer Clone () const
 
bool operator== (const BaseProperty &property) const
 Subclasses must implement IsEqual(const BaseProperty&) to support comparison. More...
 
BasePropertyoperator= (const BaseProperty &property)
 Assigns property to this BaseProperty instance. More...
 
bool AssignProperty (const BaseProperty &property)
 Assigns property to this BaseProperty instance. More...
 

Static Public Member Functions

static const char * GetStaticNameOfClass ()
 
static Pointer New ()
 
static Pointer New (itk::Object *_arg)
 
- Static Public Member Functions inherited from mitk::BaseProperty
static const char * GetStaticNameOfClass ()
 

Protected Member Functions

 WeakPointerProperty (const WeakPointerProperty &)
 
 WeakPointerProperty (itk::Object *pointer=nullptr)
 
- Protected Member Functions inherited from mitk::BaseProperty
 BaseProperty ()
 
 BaseProperty (const BaseProperty &other)
 
 ~BaseProperty () override
 

Protected Attributes

itk::WeakPointer< itk::Object > m_WeakPointer
 

Additional Inherited Members

- Static Public Attributes inherited from mitk::BaseProperty
static const std::string VALUE_CANNOT_BE_CONVERTED_TO_STRING
 Default return value if a property which can not be returned as string. More...
 

Detailed Description

Property containing a smart-pointer.

Definition at line 31 of file mitkWeakPointerProperty.h.

Member Typedef Documentation

◆ ConstPointer

◆ Pointer

◆ Self

◆ Superclass

◆ ValueType

typedef itk::WeakPointer<itk::Object> mitk::WeakPointerProperty::ValueType

Definition at line 43 of file mitkWeakPointerProperty.h.

Constructor & Destructor Documentation

◆ ~WeakPointerProperty()

mitk::WeakPointerProperty::~WeakPointerProperty ( )
override

Definition at line 35 of file mitkWeakPointerProperty.cpp.

◆ WeakPointerProperty() [1/2]

mitk::WeakPointerProperty::WeakPointerProperty ( const WeakPointerProperty other)
protected

Definition at line 30 of file mitkWeakPointerProperty.cpp.

◆ WeakPointerProperty() [2/2]

mitk::WeakPointerProperty::WeakPointerProperty ( itk::Object *  pointer = nullptr)
protected

Definition at line 26 of file mitkWeakPointerProperty.cpp.

Member Function Documentation

◆ Clone()

Pointer mitk::WeakPointerProperty::Clone ( ) const

◆ GetClassHierarchy()

virtual std::vector<std::string> mitk::WeakPointerProperty::GetClassHierarchy ( ) const
inlineoverridevirtual

Reimplemented from mitk::BaseProperty.

Definition at line 34 of file mitkWeakPointerProperty.h.

◆ GetClassName()

virtual const char* mitk::WeakPointerProperty::GetClassName ( ) const
virtual

Reimplemented from mitk::BaseProperty.

◆ GetStaticNameOfClass()

static const char* mitk::WeakPointerProperty::GetStaticNameOfClass ( )
inlinestatic

Definition at line 34 of file mitkWeakPointerProperty.h.

◆ GetValue()

mitk::WeakPointerProperty::ValueType mitk::WeakPointerProperty::GetValue ( ) const

Definition at line 51 of file mitkWeakPointerProperty.cpp.

References GetWeakPointer().

◆ GetValueAsString()

std::string mitk::WeakPointerProperty::GetValueAsString ( ) const
overridevirtual

Reimplemented from mitk::BaseProperty.

Definition at line 39 of file mitkWeakPointerProperty.cpp.

References m_WeakPointer.

◆ GetWeakPointer()

mitk::WeakPointerProperty::ValueType mitk::WeakPointerProperty::GetWeakPointer ( ) const

Definition at line 46 of file mitkWeakPointerProperty.cpp.

References m_WeakPointer.

Referenced by GetValue().

◆ New() [1/2]

static Pointer mitk::WeakPointerProperty::New ( )
static

◆ New() [2/2]

static Pointer mitk::WeakPointerProperty::New ( itk::Object *  _arg)
inlinestatic

Definition at line 39 of file mitkWeakPointerProperty.h.

◆ SetValue()

void mitk::WeakPointerProperty::SetValue ( const ValueType value)

Definition at line 65 of file mitkWeakPointerProperty.cpp.

References SetWeakPointer().

◆ SetWeakPointer()

void mitk::WeakPointerProperty::SetWeakPointer ( itk::Object *  pointer)

Definition at line 56 of file mitkWeakPointerProperty.cpp.

References m_WeakPointer.

Referenced by SetValue().

Member Data Documentation

◆ m_WeakPointer

itk::WeakPointer<itk::Object> mitk::WeakPointerProperty::m_WeakPointer
protected

Definition at line 56 of file mitkWeakPointerProperty.h.

Referenced by GetValueAsString(), GetWeakPointer(), and SetWeakPointer().


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