Mantid
Loading...
Searching...
No Matches
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
Mantid::API::IFunction::ConstAttributeVisitor< T > Class Template Referenceabstract

Const version of AttributeVisitor. More...

#include <IFunction.h>

Inheritance diagram for Mantid::API::IFunction::ConstAttributeVisitor< T >:
MantidQt::MantidWidgets::SetAttributeProperty

Public Member Functions

operator() (const bool &b) const
 implements static_visitor's operator() for bool More...
 
operator() (const double &d) const
 implements static_visitor's operator() for double More...
 
operator() (const int &i) const
 implements static_visitor's operator() for int More...
 
operator() (const std::string &str) const
 implements static_visitor's operator() for std::string More...
 
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...
 

Detailed Description

template<typename T = void>
class Mantid::API::IFunction::ConstAttributeVisitor< T >

Const version of AttributeVisitor.

Definition at line 241 of file IFunction.h.

Constructor & Destructor Documentation

◆ ~ConstAttributeVisitor()

template<typename T = void>
virtual Mantid::API::IFunction::ConstAttributeVisitor< T >::~ConstAttributeVisitor ( )
virtualdefault

Virtual destructor.

Member Function Documentation

◆ apply() [1/5]

template<typename T = void>
virtual T Mantid::API::IFunction::ConstAttributeVisitor< T >::apply ( const bool &  i) const
protectedpure virtual

◆ apply() [2/5]

template<typename T = void>
virtual T Mantid::API::IFunction::ConstAttributeVisitor< T >::apply ( const double &  d) const
protectedpure virtual

◆ apply() [3/5]

template<typename T = void>
virtual T Mantid::API::IFunction::ConstAttributeVisitor< T >::apply ( const int &  i) const
protectedpure virtual

◆ apply() [4/5]

template<typename T = void>
virtual T Mantid::API::IFunction::ConstAttributeVisitor< T >::apply ( const std::string &  str) const
protectedpure virtual

◆ apply() [5/5]

template<typename T = void>
virtual T Mantid::API::IFunction::ConstAttributeVisitor< T >::apply ( const std::vector< double > &  ) const
protectedpure virtual

◆ evaluateValidator()

template<typename T = void>
template<typename T1 >
void Mantid::API::IFunction::ConstAttributeVisitor< T >::evaluateValidator ( T1 &  inputData) const
inlineprotected

Evaluates the validator associated with attribute this visitor is to visit.

Definition at line 269 of file IFunction.h.

References m_validator.

◆ operator()() [1/5]

template<typename T = void>
T Mantid::API::IFunction::ConstAttributeVisitor< T >::operator() ( const bool &  b) const
inline

implements static_visitor's operator() for bool

Definition at line 252 of file IFunction.h.

◆ operator()() [2/5]

template<typename T = void>
T Mantid::API::IFunction::ConstAttributeVisitor< T >::operator() ( const double &  d) const
inline

implements static_visitor's operator() for double

Definition at line 248 of file IFunction.h.

References Mantid::Geometry::d.

◆ operator()() [3/5]

template<typename T = void>
T Mantid::API::IFunction::ConstAttributeVisitor< T >::operator() ( const int &  i) const
inline

implements static_visitor's operator() for int

Definition at line 250 of file IFunction.h.

◆ operator()() [4/5]

template<typename T = void>
T Mantid::API::IFunction::ConstAttributeVisitor< T >::operator() ( const std::string &  str) const
inline

implements static_visitor's operator() for std::string

Definition at line 246 of file IFunction.h.

◆ operator()() [5/5]

template<typename T = void>
T Mantid::API::IFunction::ConstAttributeVisitor< T >::operator() ( const std::vector< double > &  v) const
inline

implements static_visitor's operator() for vector

Definition at line 254 of file IFunction.h.

Member Data Documentation

◆ m_validator

Validator against which to evaluate attribute value to set.

Definition at line 276 of file IFunction.h.


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