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

Visitor setting new attribute value. More...

Inheritance diagram for MantidQt::MantidWidgets::SetAttribute:
Mantid::API::IFunction::AttributeVisitor< T >

Public Member Functions

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

Protected Member Functions

void apply (bool &b) const override
 Create bool property.
 
void apply (double &d) const override
 Create double property.
 
void apply (int &i) const override
 Create int property.
 
void apply (std::string &str) const override
 Create string property.
 
void apply (std::vector< double > &v) const override
 Create vector property.
 
- Protected Member Functions inherited from Mantid::API::IFunction::AttributeVisitor< 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::AttributeVisitor< 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 696 of file PropertyHandler.cpp.

Constructor & Destructor Documentation

◆ SetAttribute()

MantidQt::MantidWidgets::SetAttribute::SetAttribute ( FitPropertyBrowser browser,
QtProperty *  prop,
Mantid::Kernel::IValidator_sptr  validator = Mantid::Kernel::IValidator_sptr() 
)
inline

Member Function Documentation

◆ apply() [1/5]

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

◆ apply() [2/5]

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

◆ apply() [3/5]

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

◆ apply() [4/5]

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

◆ apply() [5/5]

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

Member Data Documentation

◆ m_browser

FitPropertyBrowser* MantidQt::MantidWidgets::SetAttribute::m_browser
private

Definition at line 769 of file PropertyHandler.cpp.

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

◆ m_prop

QtProperty* MantidQt::MantidWidgets::SetAttribute::m_prop
private

Definition at line 770 of file PropertyHandler.cpp.

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


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