25typedef std::map<std::string, ROOT::Math::GenAlgoOptions >
OptionsMap;
27namespace GenAlgoOptUtil {
38 std::transform(algoname.begin(), algoname.end(), algoname.begin(), (
int(*)(
int)) toupper );
40 OptionsMap::iterator pos = gOpts.find(algoname);
41 if (pos != gOpts.end() ) {
42 return &(pos->second);
50 std::string algoname(algo);
57 std::string algoname(algo);
64 opt = &((ret.first)->second);
71 for ( OptionsMap::const_iterator pos = gOpts.begin();
72 pos != gOpts.end(); ++pos) {
73 os <<
"Default specific options for algorithm " << pos->first <<
" : " << std::endl;
74 (pos->second).
Print(os);
class implementing generic options for a numerical algorithm Just store the options in a map of strin...
static void PrintAllDefault(std::ostream &os=std::cout)
print all the default options
virtual void Print(std::ostream &os=std::cout) const
print options
static IOptions & Default(const char *algoname)
static IOptions * FindDefault(const char *algoname)
Generic interface for defining configuration options of a numerical algorithm.
Namespace for new Math classes and functions.
static OptionsMap gAlgoOptions
IOptions * DoFindDefault(std::string &algoname, OptionsMap &gOpts)
std::map< std::string, ROOT::Math::GenAlgoOptions > OptionsMap
tbb::task_arena is an alias of tbb::interface7::task_arena, which doesn't allow to forward declare tb...