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

Attribute visitor to create a QtProperty. More...

Inheritance diagram for MantidQt::MantidWidgets::CreateAttributePropertyForFunctionTreeView:
Mantid::API::IFunction::ConstAttributeVisitor< FunctionTreeView::AProperty >

Public Member Functions

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

Protected Member Functions

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

Private Attributes

QString m_attName
 
FunctionTreeViewm_browser
 
QtProperty * m_parent
 

Additional Inherited Members

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

Detailed Description

Attribute visitor to create a QtProperty.

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

Definition at line 475 of file FunctionTreeView.cpp.

Constructor & Destructor Documentation

◆ CreateAttributePropertyForFunctionTreeView()

MantidQt::MantidWidgets::CreateAttributePropertyForFunctionTreeView::CreateAttributePropertyForFunctionTreeView ( FunctionTreeView browser,
QtProperty *  parent,
std::string const &  attName 
)
inline

Member Function Documentation

◆ apply() [1/5]

FunctionTreeView::AProperty MantidQt::MantidWidgets::CreateAttributePropertyForFunctionTreeView::apply ( const bool &  b) const
inlineoverrideprotectedvirtual

◆ apply() [2/5]

FunctionTreeView::AProperty MantidQt::MantidWidgets::CreateAttributePropertyForFunctionTreeView::apply ( const double &  d) const
inlineoverrideprotectedvirtual

◆ apply() [3/5]

FunctionTreeView::AProperty MantidQt::MantidWidgets::CreateAttributePropertyForFunctionTreeView::apply ( const int &  i) const
inlineoverrideprotectedvirtual

◆ apply() [4/5]

FunctionTreeView::AProperty MantidQt::MantidWidgets::CreateAttributePropertyForFunctionTreeView::apply ( const std::string &  str) const
inlineoverrideprotectedvirtual

◆ apply() [5/5]

FunctionTreeView::AProperty MantidQt::MantidWidgets::CreateAttributePropertyForFunctionTreeView::apply ( const std::vector< double > &  v) const
inlineoverrideprotectedvirtual

Member Data Documentation

◆ m_attName

QString MantidQt::MantidWidgets::CreateAttributePropertyForFunctionTreeView::m_attName
private

Definition at line 567 of file FunctionTreeView.cpp.

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

◆ m_browser

FunctionTreeView* MantidQt::MantidWidgets::CreateAttributePropertyForFunctionTreeView::m_browser
private

◆ m_parent

QtProperty* MantidQt::MantidWidgets::CreateAttributePropertyForFunctionTreeView::m_parent
private

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