@@ -73,7 +73,7 @@ namespace
7373
7474Variable::Variable (const Name& name, const Value& value) : name_(name)
7575{
76- setValue (value);
76+ Variable:: setValue (value);
7777}
7878
7979void Variable::setValue (const Value& val)
@@ -134,13 +134,6 @@ double AlgorithmParameter::toDouble() const
134134 return v ? *v : toInt ();
135135}
136136
137- std::vector<double > AlgorithmParameter::toDoubleVector () const
138- {
139- return {};
140- // const std::vector<double>* v = boost::get<std::vector<double>>(&value_);
141- // return v ? *v : std::vector<double>();
142- }
143-
144137std::string AlgorithmParameter::toString () const
145138{
146139 const std::string* v = boost::get<std::string>(&value_);
@@ -334,14 +327,14 @@ DatatypeHandle& AlgorithmData::operator[](const Name& name)
334327 return vec[0 ];
335328}
336329
337- void AlgorithmParameterList::add_option (const AlgorithmParameterName& key, const std::string& defval, const std::string& options)
330+ void AlgorithmParameterList::addOption (const AlgorithmParameterName& key, const std::string& defval, const std::string& options)
338331{
339332 std::set<std::string> opts;
340333 boost::split (opts, options, boost::is_any_of (" |" ));
341334 parameters_[key] = AlgorithmParameter (key, AlgoOption (defval, opts));
342335}
343336
344- bool AlgorithmParameterList::set_option (const AlgorithmParameterName& key, const std::string& value)
337+ bool AlgorithmParameterList::setOption (const AlgorithmParameterName& key, const std::string& value)
345338{
346339 auto paramIt = parameters_.find (key);
347340
@@ -363,7 +356,7 @@ bool AlgorithmParameterList::keyNotFoundPolicy(const AlgorithmParameterName& key
363356 BOOST_THROW_EXCEPTION (AlgorithmParameterNotFound () << Core::ErrorMessage (" Algorithm has no parameter/option with name " + key.name_ ));
364357}
365358
366- bool AlgorithmParameterList::get_option (const AlgorithmParameterName& key, std::string& value) const
359+ bool AlgorithmParameterList::getOption (const AlgorithmParameterName& key, std::string& value) const
367360{
368361 auto paramIt = parameters_.find (key);
369362
@@ -374,17 +367,17 @@ bool AlgorithmParameterList::get_option(const AlgorithmParameterName& key, std::
374367 return true ;
375368}
376369
377- std::string AlgorithmParameterList::get_option (const AlgorithmParameterName& key) const
370+ std::string AlgorithmParameterList::getOption (const AlgorithmParameterName& key) const
378371{
379372 std::string value;
380- get_option (key, value);
373+ getOption (key, value);
381374 return value;
382375}
383376
384- bool AlgorithmParameterList::check_option (const AlgorithmParameterName& key, const std::string& value) const
377+ bool AlgorithmParameterList::checkOption (const AlgorithmParameterName& key, const std::string& value) const
385378{
386379 std::string currentValue;
387- get_option (key, currentValue);
380+ getOption (key, currentValue);
388381 return boost::iequals (value, currentValue);
389382}
390383
0 commit comments