BornAgain  1.19.79
Simulate and fit neutron and x-ray scattering at grazing incidence
MinimizerItemCatalog Class Reference

Description

The MinimizerItemCatalog class is a static class to provide MinimizerItem with the list of available minimizers/algorithms.

Definition at line 25 of file MinimizerItemCatalog.h.

Static Public Member Functions

static ComboProperty algorithmCombo (const QString &minimizerType)
 Returns ComboProperty representing list of algorithms defined for given minimizerType. More...
 

Static Private Member Functions

static QStringList algorithmDescriptions (const QString &minimizerType)
 Returns list of algoritm descriptions defined for given minimizer. More...
 
static QStringList algorithmNames (const QString &minimizerType)
 Returns list of algorithm names defined for given minimizer. More...
 

Member Function Documentation

◆ algorithmCombo()

ComboProperty MinimizerItemCatalog::algorithmCombo ( const QString &  minimizerType)
static

Returns ComboProperty representing list of algorithms defined for given minimizerType.

Definition at line 21 of file MinimizerItemCatalog.cpp.

22 {
23  ComboProperty result = ComboProperty() << algorithmNames(minimizerType);
24  result.setToolTips(algorithmDescriptions(minimizerType));
25  return result;
26 }
Custom property to define list of string values with multiple selections. Intended for QVariant.
Definition: ComboProperty.h:25
void setToolTips(const QStringList &tooltips)
static QStringList algorithmNames(const QString &minimizerType)
Returns list of algorithm names defined for given minimizer.
static QStringList algorithmDescriptions(const QString &minimizerType)
Returns list of algoritm descriptions defined for given minimizer.

References algorithmDescriptions(), algorithmNames(), and ComboProperty::setToolTips().

Referenced by GSLMultiMinimizerItem::GSLMultiMinimizerItem(), and MinuitMinimizerItem::MinuitMinimizerItem().

Here is the call graph for this function:

◆ algorithmDescriptions()

QStringList MinimizerItemCatalog::algorithmDescriptions ( const QString &  minimizerType)
staticprivate

Returns list of algoritm descriptions defined for given minimizer.

Definition at line 39 of file MinimizerItemCatalog.cpp.

40 {
41  std::vector<std::string> descr =
42  MinimizerFactory::catalog().algorithmDescriptions(minimizerType.toStdString());
44 }
QStringList fromStdStrings(const std::vector< std::string > &container)
Definition: String.cpp:18

References GUI::Util::String::fromStdStrings().

Referenced by algorithmCombo().

Here is the call graph for this function:

◆ algorithmNames()

QStringList MinimizerItemCatalog::algorithmNames ( const QString &  minimizerType)
staticprivate

Returns list of algorithm names defined for given minimizer.

Definition at line 30 of file MinimizerItemCatalog.cpp.

31 {
32  std::vector<std::string> algos =
33  MinimizerFactory::catalog().algorithmNames(minimizerType.toStdString());
35 }

References GUI::Util::String::fromStdStrings().

Referenced by algorithmCombo().

Here is the call graph for this function:

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