BornAgain
1.19.79
Open-source research software to simulate and fit neutron and x-ray reflectometry and grazing-incidence small-angle scattering
|
Hard-coded information about all minimizers available.
Definition at line 35 of file MinimizerCatalog.h.
Public Member Functions | |
MinimizerCatalog () | |
MinimizerCatalog (const MinimizerCatalog &)=delete | |
MinimizerCatalog (MinimizerCatalog &&)=default | |
std::vector< std::string > | algorithmDescriptions (const std::string &minimizerName) const |
Returns list of algorithm's descriptions for the minimizer with a given name . More... | |
std::vector< std::string > | algorithmNames (const std::string &minimizerName) const |
Returns list of algorithms defined for the minimizer with a given name. More... | |
const MinimizerInfo & | minimizerInfo (const std::string &minimizerName) const |
Returns info for minimizer with given name. More... | |
std::vector< std::string > | minimizerNames () const |
std::string | toString () const |
Returns multiline string representing catalog content. More... | |
Private Member Functions | |
void | addMinimizerInfo (MinimizerInfo &&info) |
Adds minimizer info to the catalog. More... | |
Private Attributes | |
std::vector< MinimizerInfo > | m_minimizers |
MinimizerCatalog::MinimizerCatalog | ( | ) |
Definition at line 20 of file MinimizerCatalog.cpp.
References addMinimizerInfo(), MinimizerInfo::buildGeneticInfo(), MinimizerInfo::buildGSLLMAInfo(), MinimizerInfo::buildGSLMultiMinInfo(), MinimizerInfo::buildGSLSimAnInfo(), and MinimizerInfo::buildMinuit2Info().
|
delete |
|
default |
|
private |
Adds minimizer info to the catalog.
Definition at line 86 of file MinimizerCatalog.cpp.
References m_minimizers.
Referenced by MinimizerCatalog().
std::vector< std::string > MinimizerCatalog::algorithmDescriptions | ( | const std::string & | minimizerName | ) | const |
Returns list of algorithm's descriptions for the minimizer with a given name .
Definition at line 66 of file MinimizerCatalog.cpp.
References MinimizerInfo::algorithmDescriptions(), and minimizerInfo().
std::vector< std::string > MinimizerCatalog::algorithmNames | ( | const std::string & | minimizerName | ) | const |
Returns list of algorithms defined for the minimizer with a given name.
Definition at line 58 of file MinimizerCatalog.cpp.
References MinimizerInfo::algorithmNames(), and minimizerInfo().
const MinimizerInfo & MinimizerCatalog::minimizerInfo | ( | const std::string & | minimizerName | ) | const |
Returns info for minimizer with given name.
Definition at line 73 of file MinimizerCatalog.cpp.
References m_minimizers.
Referenced by algorithmDescriptions(), algorithmNames(), and MinimizerFactory::catalogDetailsToString().
std::vector< std::string > MinimizerCatalog::minimizerNames | ( | ) | const |
std::string MinimizerCatalog::toString | ( | ) | const |
Returns multiline string representing catalog content.
Definition at line 31 of file MinimizerCatalog.cpp.
References m_minimizers, and mumufit::utils::toString().
Referenced by MinimizerFactory::catalogToString(), and MinimizerFactory::createMinimizer().
|
private |
Definition at line 53 of file MinimizerCatalog.h.
Referenced by addMinimizerInfo(), minimizerInfo(), minimizerNames(), and toString().