MeVisLab Toolbox Reference
PropertyValue Class Reference

Class PropertyValue, which is used to hold properties of a given set of allowed types in typesafe way. More...

#include <mlPropertyValue.h>

Public Types

typedef boost::mpl::vector< MLint8, MLuint8, MLint16, MLuint16, MLint32, MLuint32, MLuint64, MLint64, double, Vector3, Vector6 > SupportedPropertyTypes
 

Public Member Functions

 PropertyValue ()
 
template<typename T >
 PropertyValue (const T &initialValue)
 
bool operator== (const PropertyValue &other) const
 
template<typename T >
Tget ()
 
template<typename T >
const Tget () const
 
template<typename VisitorType >
VisitorType::result_type apply (VisitorType &visitor)
 
template<typename VisitorType >
VisitorType::result_type apply (VisitorType &visitor) const
 
template<typename VisitorType >
VisitorType::result_type apply (const VisitorType &visitor)
 
template<typename VisitorType >
VisitorType::result_type apply (const VisitorType &visitor) const
 
size_t which () const
 

Detailed Description

Class PropertyValue, which is used to hold properties of a given set of allowed types in typesafe way.

Definition at line 39 of file mlPropertyValue.h.

Member Typedef Documentation

◆ SupportedPropertyTypes

typedef boost::mpl::vector<MLint8, MLuint8, MLint16, MLuint16, MLint32, MLuint32, MLuint64, MLint64, double, Vector3, Vector6> PropertyValue::SupportedPropertyTypes

Definition at line 41 of file mlPropertyValue.h.

Constructor & Destructor Documentation

◆ PropertyValue() [1/2]

PropertyValue::PropertyValue ( )
inline

Definition at line 43 of file mlPropertyValue.h.

◆ PropertyValue() [2/2]

template<typename T >
PropertyValue::PropertyValue ( const T initialValue)
inline

Definition at line 46 of file mlPropertyValue.h.

Member Function Documentation

◆ apply() [1/4]

template<typename VisitorType >
VisitorType::result_type PropertyValue::apply ( const VisitorType &  visitor)
inline

Definition at line 69 of file mlPropertyValue.h.

References lightweight::apply_visitor().

◆ apply() [2/4]

template<typename VisitorType >
VisitorType::result_type PropertyValue::apply ( const VisitorType &  visitor) const
inline

Definition at line 72 of file mlPropertyValue.h.

References lightweight::apply_visitor().

◆ apply() [3/4]

template<typename VisitorType >
VisitorType::result_type PropertyValue::apply ( VisitorType &  visitor)
inline

Definition at line 63 of file mlPropertyValue.h.

References lightweight::apply_visitor().

Referenced by addToTree().

◆ apply() [4/4]

template<typename VisitorType >
VisitorType::result_type PropertyValue::apply ( VisitorType &  visitor) const
inline

Definition at line 66 of file mlPropertyValue.h.

References lightweight::apply_visitor().

◆ get() [1/2]

template<typename T >
T& PropertyValue::get ( )
inline

Definition at line 51 of file mlPropertyValue.h.

◆ get() [2/2]

template<typename T >
const T& PropertyValue::get ( ) const
inline

Definition at line 57 of file mlPropertyValue.h.

◆ operator==()

bool PropertyValue::operator== ( const PropertyValue other) const
inline

Definition at line 48 of file mlPropertyValue.h.

◆ which()

size_t PropertyValue::which ( ) const
inline

Definition at line 74 of file mlPropertyValue.h.

Referenced by PropertyManager::getPropertyNames().


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