Mantid
Loading...
Searching...
No Matches
Public Member Functions | Protected Member Functions | Private Attributes | List of all members
MantidQt::MantidWidgets::SetAttributeProperty Class Reference

Visitor setting new attribute value. More...

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

Public Member Functions

 SetAttributeProperty (FitPropertyBrowser *browser, QtProperty *prop)
 
- Public Member Functions inherited from Mantid::API::IFunction::ConstAttributeVisitor< T >
operator() (const bool &b) const
 implements static_visitor's operator() for bool
 
operator() (const double &d) const
 implements static_visitor's operator() for double
 
operator() (const int &i) const
 implements static_visitor's operator() for int
 
operator() (const std::string &str) const
 implements static_visitor's operator() for std::string
 
operator() (const std::vector< double > &v) const
 implements static_visitor's operator() for vector
 
virtual ~ConstAttributeVisitor ()=default
 Virtual destructor.
 

Protected Member Functions

void apply (const bool &b) const override
 Set bool property.
 
void apply (const double &d) const override
 Set double property.
 
void apply (const int &i) const override
 Set int property.
 
void apply (const std::string &str) const override
 Set string property.
 
void apply (const std::vector< double > &) const override
 Set vector property.
 
- Protected Member Functions inherited from Mantid::API::IFunction::ConstAttributeVisitor< T >
template<typename T1 >
void evaluateValidator (T1 &inputData) const
 Evaluates the validator associated with attribute this visitor is to visit.
 

Private Attributes

FitPropertyBrowserm_browser
 
QtProperty * m_prop
 

Additional Inherited Members

- Protected Attributes inherited from Mantid::API::IFunction::ConstAttributeVisitor< T >
Mantid::Kernel::IValidator_sptr m_validator = Mantid::Kernel::IValidator_sptr()
 Validator against which to evaluate attribute value to set.
 

Detailed Description

Visitor setting new attribute value.

Depending on the attribute type the appropriate apply method is used.

Definition at line 777 of file PropertyHandler.cpp.

Constructor & Destructor Documentation

◆ SetAttributeProperty()

MantidQt::MantidWidgets::SetAttributeProperty::SetAttributeProperty ( FitPropertyBrowser browser,
QtProperty *  prop 
)
inline

Definition at line 779 of file PropertyHandler.cpp.

Member Function Documentation

◆ apply() [1/5]

void MantidQt::MantidWidgets::SetAttributeProperty::apply ( const bool &  b) const
inlineoverrideprotectedvirtual

◆ apply() [2/5]

void MantidQt::MantidWidgets::SetAttributeProperty::apply ( const double &  d) const
inlineoverrideprotectedvirtual

◆ apply() [3/5]

void MantidQt::MantidWidgets::SetAttributeProperty::apply ( const int &  i) const
inlineoverrideprotectedvirtual

◆ apply() [4/5]

void MantidQt::MantidWidgets::SetAttributeProperty::apply ( const std::string &  str) const
inlineoverrideprotectedvirtual

◆ apply() [5/5]

void MantidQt::MantidWidgets::SetAttributeProperty::apply ( const std::vector< double > &  ) const
inlineoverrideprotectedvirtual

Set vector property.

Implements Mantid::API::IFunction::ConstAttributeVisitor< T >.

Definition at line 807 of file PropertyHandler.cpp.

Member Data Documentation

◆ m_browser

FitPropertyBrowser* MantidQt::MantidWidgets::SetAttributeProperty::m_browser
private

Definition at line 815 of file PropertyHandler.cpp.

Referenced by apply(), apply(), apply(), and apply().

◆ m_prop

QtProperty* MantidQt::MantidWidgets::SetAttributeProperty::m_prop
private

Definition at line 816 of file PropertyHandler.cpp.

Referenced by apply(), apply(), apply(), and apply().


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