21 for (
const auto& option : other.m_options)
22 m_options.push_back(option_t(
new MultiOption(*option)));
29 tmp.swapContent(*
this);
34 OptionContainer::option_t OptionContainer::option(
const std::string& optionName)
36 for (
const auto& option : m_options) {
37 if (option->name() == optionName)
41 throw std::runtime_error(
"Configurable::getOption() -> Error. No option with name '"
45 const OptionContainer::option_t OptionContainer::option(
const std::string& optionName)
const
47 for (
const auto& option : m_options) {
48 if (option->name() == optionName)
52 throw std::runtime_error(
"Configurable::getOption() -> Error. No option with name '"
56 bool OptionContainer::exists(
const std::string& name)
58 for (
const auto& option : m_options) {
59 if (option->name() == name)
Declares class OptionContainer.
void swap(OutputDataIterator< TValue, TContainer > &left, OutputDataIterator< TValue, TContainer > &right)
make Swappable
Stores a single option for minimization algorithm.
Stores multi option (int,double,string) in a container.