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

Atribute validator visitor class. More...

#include <IFunction.h>

Inheritance diagram for Mantid::API::IFunction::AttributeValidatorVisitor< T >:

Public Member Functions

 AttributeValidatorVisitor (const IFunction::Attribute *attrToValidate)
 
operator() (bool &b) const
 implements static_visitor's operator() for bool More...
 
operator() (double &d) const
 implements static_visitor's operator() for double More...
 
operator() (int &i) const
 implements static_visitor's operator() for int More...
 
operator() (std::string &str) const
 implements static_visitor's operator() for std::string More...
 
operator() (std::vector< double > &v) const
 implements static_visitor's operator() for vector More...
 

Protected Attributes

const IFunction::Attributem_attrToValidate
 

Detailed Description

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

Atribute validator visitor class.

It is used to access m_data of a specificed attribute in order to evaluate the current value of the attribute against the associated validator, for all allowed types.

Definition at line 377 of file IFunction.h.

Constructor & Destructor Documentation

◆ AttributeValidatorVisitor()

template<typename T = void>
Mantid::API::IFunction::AttributeValidatorVisitor< T >::AttributeValidatorVisitor ( const IFunction::Attribute attrToValidate)
inline

Definition at line 379 of file IFunction.h.

Member Function Documentation

◆ operator()() [1/5]

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

implements static_visitor's operator() for bool

Definition at line 388 of file IFunction.h.

◆ operator()() [2/5]

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

implements static_visitor's operator() for double

Definition at line 384 of file IFunction.h.

References Mantid::Geometry::d.

◆ operator()() [3/5]

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

implements static_visitor's operator() for int

Definition at line 386 of file IFunction.h.

◆ operator()() [4/5]

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

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

Definition at line 382 of file IFunction.h.

◆ operator()() [5/5]

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

implements static_visitor's operator() for vector

Definition at line 390 of file IFunction.h.

Member Data Documentation

◆ m_attrToValidate

template<typename T = void>
const IFunction::Attribute* Mantid::API::IFunction::AttributeValidatorVisitor< T >::m_attrToValidate
protected

Definition at line 393 of file IFunction.h.


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