Medical Imaging Interaction Toolkit  2016.11.0
Medical Imaging Interaction Toolkit
mitk::GenericProperty< T > Class Template Reference

#include <mitkGenericProperty.h>

Inheritance diagram for mitk::GenericProperty< T >:
Collaboration diagram for mitk::GenericProperty< T >:

Public Types

typedef GenericProperty Self
 
typedef BaseProperty Superclass
 
typedef itk::SmartPointer< SelfPointer
 
typedef itk::SmartPointer< const SelfConstPointer
 
typedef T 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
 
virtual void SetValue (T _arg)
 
virtual T GetValue () const
 
virtual 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 (T _arg)
 
- Static Public Member Functions inherited from mitk::BaseProperty
static const char * GetStaticNameOfClass ()
 

Protected Member Functions

 GenericProperty ()
 
 GenericProperty (T x)
 
 GenericProperty (const GenericProperty &other)
 
- Protected Member Functions inherited from mitk::BaseProperty
 BaseProperty ()
 
 BaseProperty (const BaseProperty &other)
 
virtual ~BaseProperty ()
 

Protected Attributes

m_Value
 

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

template<typename T>
class mitk::GenericProperty< T >

@ brief Template class for generating properties for int, float, bool, etc.

This class template can be instantiated for all classes/internal types that fulfills these requirements:

  • an operator<< so that the properties value can be put into a std::stringstream
  • an operator== so that two properties can be checked for equality

Note: you must use the macro mitkSpecializeGenericProperty to provide specializations for concrete types (e.g. BoolProperty). Please see mitkProperties.h for examples. If you don't use the mitkSpecializeGenericProperty Macro, GetNameOfClass() returns a wrong name.

Definition at line 49 of file mitkGenericProperty.h.

Member Typedef Documentation

template<typename T>
typedef itk::SmartPointer<const Self> mitk::GenericProperty< T >::ConstPointer

Definition at line 52 of file mitkGenericProperty.h.

template<typename T>
typedef itk::SmartPointer<Self> mitk::GenericProperty< T >::Pointer

Definition at line 52 of file mitkGenericProperty.h.

template<typename T>
typedef GenericProperty mitk::GenericProperty< T >::Self

Definition at line 52 of file mitkGenericProperty.h.

template<typename T>
typedef BaseProperty mitk::GenericProperty< T >::Superclass

Definition at line 52 of file mitkGenericProperty.h.

template<typename T>
typedef T mitk::GenericProperty< T >::ValueType

Definition at line 56 of file mitkGenericProperty.h.

Constructor & Destructor Documentation

template<typename T>
mitk::GenericProperty< T >::GenericProperty ( )
inlineprotected

Definition at line 71 of file mitkGenericProperty.h.

template<typename T>
mitk::GenericProperty< T >::GenericProperty ( x)
inlineprotected

Definition at line 72 of file mitkGenericProperty.h.

template<typename T>
mitk::GenericProperty< T >::GenericProperty ( const GenericProperty< T > &  other)
inlineprotected

Definition at line 73 of file mitkGenericProperty.h.

Member Function Documentation

template<typename T>
Pointer mitk::GenericProperty< T >::Clone ( ) const
template<typename T>
static const char* mitk::GenericProperty< T >::GetStaticNameOfClass ( )
inlinestatic

Definition at line 52 of file mitkGenericProperty.h.

template<typename T>
virtual std::string mitk::GenericProperty< T >::GetValueAsString ( ) const
inlineoverridevirtual

Reimplemented from mitk::BaseProperty.

Definition at line 61 of file mitkGenericProperty.h.

template<typename T>
static Pointer mitk::GenericProperty< T >::New ( _arg)
inlinestatic

Definition at line 53 of file mitkGenericProperty.h.

Member Data Documentation

template<typename T>
T mitk::GenericProperty< T >::m_Value
protected

Definition at line 74 of file mitkGenericProperty.h.


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