BornAgain
1.19.0
Simulate and fit neutron and x-ray scattering at grazing incidence
|
Collection of internal minimizer settings. More...
Public Types | |
using | const_iterator = container_t::const_iterator |
using | container_t = std::vector< option_t > |
using | iterator = container_t::iterator |
using | option_t = std::shared_ptr< MultiOption > |
Public Member Functions | |
template<class T > | |
option_t | addOption (const std::string &optionName, T value, const std::string &description="") |
iterator | begin () |
const_iterator | begin () const |
bool | empty () const |
iterator | end () |
const_iterator | end () const |
option_t | option (const std::string &optionName) |
const option_t | option (const std::string &optionName) const |
template<class T > | |
T | optionValue (const std::string &optionName) const |
void | setOptionString (const std::string &options) |
Set options from their string representation. More... | |
template<class T > | |
void | setOptionValue (const std::string &optionName, T value) |
Sets the value of option. Option should hold same value type already. More... | |
size_t | size () const |
std::string | toOptionString () const |
Returns string with all options (i.e. "Strategy=1;Tolerance=0.01;") More... | |
Protected Member Functions | |
bool | exists (const std::string &name) |
void | swapContent (OptionContainer &other) |
Protected Attributes | |
container_t | m_options |
Private Member Functions | |
void | processCommand (const std::string &command) |
Process single option string 'Tolerance=0.01' and sets the value to corresponding MultiOption. More... | |
Collection of internal minimizer settings.
Definition at line 28 of file MinimizerOptions.h.
|
inherited |
Definition at line 37 of file OptionContainer.h.
|
inherited |
Definition at line 35 of file OptionContainer.h.
|
inherited |
Definition at line 36 of file OptionContainer.h.
|
inherited |
Definition at line 34 of file OptionContainer.h.
|
inherited |
Definition at line 70 of file OptionContainer.h.
References OptionContainer::exists(), and OptionContainer::m_options.
Referenced by MinimizerAdapter::addOption().
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
Definition at line 61 of file OptionContainer.h.
References OptionContainer::size().
|
inlineinherited |
|
inlineinherited |
|
protectedinherited |
Definition at line 56 of file OptionContainer.cpp.
References OptionContainer::m_options, RealSpace::Particles::name(), and OptionContainer::option().
Referenced by OptionContainer::addOption().
|
inherited |
Definition at line 34 of file OptionContainer.cpp.
References OptionContainer::m_options.
Referenced by OptionContainer::OptionContainer(), OptionContainer::exists(), OptionContainer::option(), OptionContainer::optionValue(), processCommand(), OptionContainer::setOptionValue(), and toOptionString().
|
inherited |
Definition at line 45 of file OptionContainer.cpp.
References OptionContainer::m_options, and OptionContainer::option().
|
inherited |
Definition at line 82 of file OptionContainer.h.
References OptionContainer::option().
Referenced by MinimizerAdapter::optionValue().
|
private |
Process single option string 'Tolerance=0.01' and sets the value to corresponding MultiOption.
Definition at line 53 of file MinimizerOptions.cpp.
References RealSpace::Particles::name(), OptionContainer::option(), and mumufit::stringUtils::split().
Referenced by setOptionString().
void MinimizerOptions::setOptionString | ( | const std::string & | options | ) |
Set options from their string representation.
Definition at line 34 of file MinimizerOptions.cpp.
References processCommand(), and mumufit::stringUtils::split().
Referenced by MinimizerAdapter::setOptions().
|
inherited |
Sets the value of option. Option should hold same value type already.
Definition at line 87 of file OptionContainer.h.
References OptionContainer::option().
Referenced by MinimizerAdapter::setOptionValue().
|
inlineinherited |
Definition at line 60 of file OptionContainer.h.
References OptionContainer::m_options.
Referenced by OptionContainer::empty().
|
protectedinherited |
Definition at line 65 of file OptionContainer.cpp.
References OptionContainer::m_options, and swap().
Referenced by OptionContainer::operator=().
std::string MinimizerOptions::toOptionString | ( | ) | const |
Returns string with all options (i.e. "Strategy=1;Tolerance=0.01;")
Definition at line 25 of file MinimizerOptions.cpp.
References OptionContainer::m_options, and OptionContainer::option().
|
protectedinherited |
Definition at line 66 of file OptionContainer.h.
Referenced by OptionContainer::OptionContainer(), OptionContainer::addOption(), OptionContainer::begin(), OptionContainer::end(), OptionContainer::exists(), OptionContainer::option(), OptionContainer::size(), OptionContainer::swapContent(), and toOptionString().