24 typedef std::map<std::string, ROOT::Math::GenAlgoOptions >
OptionsMap;
26 namespace GenAlgoOptUtil {
37 std::transform(algoname.begin(), algoname.end(), algoname.begin(), (int(*)(int)) toupper );
39 OptionsMap::iterator pos = gOpts.find(algoname);
40 if (pos != gOpts.end() ) {
41 return &(pos->second);
49 std::string algoname(algo);
56 std::string algoname(algo);
63 opt = &((ret.first)->second);
70 for ( OptionsMap::const_iterator pos = gOpts.begin();
71 pos != gOpts.end(); ++pos) {
72 os <<
"Default specific options for algorithm " << pos->first <<
" : " << std::endl;
73 (pos->second).
Print(os);
std::map< std::string, ROOT::Math::GenAlgoOptions > OptionsMap
This namespace contains pre-defined functions to be used in conjuction with TExecutor::Map and TExecu...
static OptionsMap gAlgoOptions
static void PrintAllDefault(std::ostream &os=std::cout)
print all the default options
IOptions * DoFindDefault(std::string &algoname, OptionsMap &gOpts)
class implementing generic options for a numerical algorithm Just store the options in a map of strin...
void Print(std::ostream &os, const OptionType &opt)
Namespace for new Math classes and functions.
static IOptions & Default(const char *algoname)
Generic interface for defining configuration options of a numerical algorithm.
static IOptions * FindDefault(const char *algoname)