Mantid
|
Const version of AttributeVisitor. More...
#include <IFunction.h>
Public Member Functions | |
T | operator() (const bool &b) const |
implements static_visitor's operator() for bool More... | |
T | operator() (const double &d) const |
implements static_visitor's operator() for double More... | |
T | operator() (const int &i) const |
implements static_visitor's operator() for int More... | |
T | operator() (const std::string &str) const |
implements static_visitor's operator() for std::string More... | |
T | operator() (const std::vector< double > &v) const |
implements static_visitor's operator() for vector More... | |
virtual | ~ConstAttributeVisitor ()=default |
Virtual destructor. More... | |
Protected Member Functions | |
virtual T | apply (const bool &i) const =0 |
Implement this mathod to access attribute as bool. More... | |
virtual T | apply (const double &d) const =0 |
Implement this mathod to access attribute as double. More... | |
virtual T | apply (const int &i) const =0 |
Implement this mathod to access attribute as int. More... | |
virtual T | apply (const std::string &str) const =0 |
Implement this mathod to access attribute as string. More... | |
virtual T | apply (const std::vector< double > &) const =0 |
Implement this mathod to access attribute as vector. More... | |
template<typename T1 > | |
void | evaluateValidator (T1 &inputData) const |
Evaluates the validator associated with attribute this visitor is to visit. More... | |
Protected Attributes | |
Mantid::Kernel::IValidator_sptr | m_validator = Mantid::Kernel::IValidator_sptr() |
Validator against which to evaluate attribute value to set. More... | |
Const version of AttributeVisitor.
Definition at line 241 of file IFunction.h.
|
virtualdefault |
Virtual destructor.
|
protectedpure virtual |
Implement this mathod to access attribute as bool.
Implemented in MantidQt::MantidWidgets::CreateAttributePropertyForFunctionTreeView, MantidQt::MantidWidgets::CreateAttributeProperty, and MantidQt::MantidWidgets::SetAttributeProperty.
|
protectedpure virtual |
Implement this mathod to access attribute as double.
Implemented in MantidQt::MantidWidgets::CreateAttributePropertyForFunctionTreeView, MantidQt::MantidWidgets::CreateAttributeProperty, and MantidQt::MantidWidgets::SetAttributeProperty.
|
protectedpure virtual |
Implement this mathod to access attribute as int.
Implemented in MantidQt::MantidWidgets::CreateAttributePropertyForFunctionTreeView, MantidQt::MantidWidgets::CreateAttributeProperty, and MantidQt::MantidWidgets::SetAttributeProperty.
|
protectedpure virtual |
Implement this mathod to access attribute as string.
Implemented in MantidQt::MantidWidgets::CreateAttributePropertyForFunctionTreeView, MantidQt::MantidWidgets::CreateAttributeProperty, and MantidQt::MantidWidgets::SetAttributeProperty.
|
protectedpure virtual |
Implement this mathod to access attribute as vector.
Implemented in MantidQt::MantidWidgets::SetAttributeProperty, MantidQt::MantidWidgets::CreateAttributeProperty, and MantidQt::MantidWidgets::CreateAttributePropertyForFunctionTreeView.
|
inlineprotected |
Evaluates the validator associated with attribute this visitor is to visit.
Definition at line 269 of file IFunction.h.
References m_validator.
|
inline |
implements static_visitor's operator() for bool
Definition at line 252 of file IFunction.h.
|
inline |
implements static_visitor's operator() for double
Definition at line 248 of file IFunction.h.
References Mantid::Geometry::d.
|
inline |
implements static_visitor's operator() for int
Definition at line 250 of file IFunction.h.
|
inline |
implements static_visitor's operator() for std::string
Definition at line 246 of file IFunction.h.
|
inline |
implements static_visitor's operator() for vector
Definition at line 254 of file IFunction.h.
|
protected |
Validator against which to evaluate attribute value to set.
Definition at line 276 of file IFunction.h.