|
BornAgain
1.18.0
Simulate and fit neutron and x-ray scattering at grazing incidence
|
Public Types | |
| using | option_t = std::shared_ptr< MultiOption > |
| using | container_t = std::vector< option_t > |
| using | iterator = container_t::iterator |
| using | const_iterator = container_t::const_iterator |
Public Member Functions | |
| std::string | toOptionString () const |
| void | setOptionString (const std::string &options) |
| template<class T > | |
| option_t | addOption (const std::string &optionName, T value, const std::string &description="") |
| 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 |
| template<class T > | |
| void | setOptionValue (const std::string &optionName, T value) |
| iterator | begin () |
| const_iterator | begin () const |
| iterator | end () |
| const_iterator | end () const |
| size_t | size () const |
| bool | empty () const |
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) |
Collection of internal minimizer settings.
Definition at line 23 of file MinimizerOptions.h.
|
inherited |
Definition at line 30 of file OptionContainer.h.
|
inherited |
Definition at line 31 of file OptionContainer.h.
|
inherited |
Definition at line 32 of file OptionContainer.h.
|
inherited |
Definition at line 33 of file OptionContainer.h.
| std::string MinimizerOptions::toOptionString | ( | ) | const |
Returns string with all options (i.e. "Strategy=1;Tolerance=0.01;")
Definition at line 26 of file MinimizerOptions.cpp.
References anonymous_namespace{MinimizerOptions.cpp}::delimeter, OptionContainer::m_options, and OptionContainer::option().
Referenced by anonymous_namespace{MinimizerResultUtils.cpp}::reportOption().
| void MinimizerOptions::setOptionString | ( | const std::string & | options | ) |
Set options from their string representation.
Definition at line 35 of file MinimizerOptions.cpp.
References anonymous_namespace{MinimizerOptions.cpp}::delimeter, processCommand(), and StringUtils::split().
Referenced by RootMinimizerAdapter::setOptions().
|
private |
Process single option string 'Tolerance=0.01' and sets the value to corresponding MultiOption.
Definition at line 54 of file MinimizerOptions.cpp.
References OptionContainer::option(), and StringUtils::split().
Referenced by setOptionString().
|
inherited |
Definition at line 66 of file OptionContainer.h.
References OptionContainer::exists(), and OptionContainer::m_options.
Referenced by RootMinimizerAdapter::addOption().
|
inherited |
Definition at line 34 of file OptionContainer.cpp.
References OptionContainer::m_options.
Referenced by OptionContainer::exists(), OptionContainer::option(), OptionContainer::OptionContainer(), 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 78 of file OptionContainer.h.
References OptionContainer::option().
Referenced by RootMinimizerAdapter::optionValue().
|
inherited |
Sets the value of option. Option should hold same value type already.
Definition at line 83 of file OptionContainer.h.
References OptionContainer::option().
Referenced by RootMinimizerAdapter::setOptionValue().
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
Definition at line 56 of file OptionContainer.h.
References OptionContainer::m_options.
Referenced by OptionContainer::empty().
|
inlineinherited |
Definition at line 57 of file OptionContainer.h.
References OptionContainer::size().
Referenced by anonymous_namespace{MinimizerResultUtils.cpp}::reportOption().
|
protectedinherited |
Definition at line 56 of file OptionContainer.cpp.
References OptionContainer::m_options, and OptionContainer::option().
Referenced by OptionContainer::addOption().
|
protectedinherited |
Definition at line 65 of file OptionContainer.cpp.
References OptionContainer::m_options, and swap().
Referenced by OptionContainer::operator=().
|
protectedinherited |
Definition at line 62 of file OptionContainer.h.
Referenced by OptionContainer::addOption(), OptionContainer::begin(), OptionContainer::end(), OptionContainer::exists(), OptionContainer::option(), OptionContainer::OptionContainer(), OptionContainer::size(), OptionContainer::swapContent(), and toOptionString().