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, const QString &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 More...
 
FunctionTreeView::AProperty operator() (const double &d) const
 implements static_visitor's operator() for double More...
 
FunctionTreeView::AProperty operator() (const int &i) const
 implements static_visitor's operator() for int More...
 
FunctionTreeView::AProperty operator() (const std::string &str) const
 implements static_visitor's operator() for std::string More...
 
FunctionTreeView::AProperty operator() (const std::vector< double > &v) const
 implements static_visitor's operator() for vector More...
 
virtual ~ConstAttributeVisitor ()=default
 Virtual destructor. More...
 

Protected Member Functions

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

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. More...
 

Detailed Description

Attribute visitor to create a QtProperty.

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

Definition at line 469 of file FunctionTreeView.cpp.

Constructor & Destructor Documentation

◆ CreateAttributePropertyForFunctionTreeView()

MantidQt::MantidWidgets::CreateAttributePropertyForFunctionTreeView::CreateAttributePropertyForFunctionTreeView ( FunctionTreeView browser,
QtProperty *  parent,
const QString &  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 560 of file FunctionTreeView.cpp.

Referenced by apply().

◆ m_browser

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

Definition at line 558 of file FunctionTreeView.cpp.

Referenced by apply(), and CreateAttributePropertyForFunctionTreeView().

◆ m_parent

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

Definition at line 559 of file FunctionTreeView.cpp.

Referenced by apply(), and CreateAttributePropertyForFunctionTreeView().


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