ROOT » MATH » MATHCORE » ROOT::Math::GenAlgoOptions

class ROOT::Math::GenAlgoOptions: public ROOT::Math::IOptions


    class implementing generic options for a numerical algorithm
    Just store the options in a map of string-value pairs

    @ingroup NumAlgo

Function Members (Methods)

public:
virtual~GenAlgoOptions()
virtual ROOT::Math::IOptions*Clone() const
static ROOT::Math::IOptions&Default(const char* algoname)
static ROOT::Math::IOptions*FindDefault(const char* algoname)
ROOT::Math::GenAlgoOptionsGenAlgoOptions()
ROOT::Math::GenAlgoOptionsGenAlgoOptions(const ROOT::Math::GenAlgoOptions&)
virtual boolGetIntValue(const char* name, int& val) const
virtual boolGetNamedValue(const char* name, string& val) const
virtual boolGetRealValue(const char* name, double& val) const
ROOT::Math::IOptionsROOT::Math::IOptions::IOptions()
ROOT::Math::IOptionsROOT::Math::IOptions::IOptions(const ROOT::Math::IOptions&)
intROOT::Math::IOptions::IValue(const char* name) const
stringROOT::Math::IOptions::NamedValue(const char* name) const
ROOT::Math::GenAlgoOptions&operator=(const ROOT::Math::GenAlgoOptions&)
virtual voidPrint(ostream& os = std::cout) const
static voidPrintAllDefault(ostream& os = std::cout)
doubleROOT::Math::IOptions::RValue(const char* name) const
virtual voidSetIntValue(const char* name, int val)
virtual voidSetNamedValue(const char* name, const char* val)
virtual voidSetRealValue(const char* name, double val)
voidROOT::Math::IOptions::SetValue(const char* name, double val)
voidROOT::Math::IOptions::SetValue(const char* name, int val)
voidROOT::Math::IOptions::SetValue(const char* name, const char* val)
private:
static const map<string,double>::mapped_type*FindValue<std::map<std::basic_string<char>, double, std::less<std::basic_string<char> >, std::allocator<std::pair<const std::basic_string<char>, double> > > >(const string& name, const map<string,double>& opts)
static const map<string,int>::mapped_type*FindValue<std::map<std::basic_string<char>, int, std::less<std::basic_string<char> >, std::allocator<std::pair<const std::basic_string<char>, int> > > >(const string& name, const map<string,int>& opts)
static const map<string,string>::mapped_type*FindValue<std::map<std::basic_string<char>, std::basic_string<char>, std::less<std::basic_string<char> >, std::allocator<std::pair<const std::basic_string<char>, std::basic_string<char> > > > >(const string& name, const map<string,string>& opts)
static voidInsertValue<std::map<std::basic_string<char>, double, std::less<std::basic_string<char> >, std::allocator<std::pair<const std::basic_string<char>, double> > > >(const string& name, map<string,double>& opts, const map<string,double>::mapped_type& value)
static voidInsertValue<std::map<std::basic_string<char>, int, std::less<std::basic_string<char> >, std::allocator<std::pair<const std::basic_string<char>, int> > > >(const string& name, map<string,int>& opts, const map<string,int>::mapped_type& value)
static voidInsertValue<std::map<std::basic_string<char>, std::basic_string<char>, std::less<std::basic_string<char> >, std::allocator<std::pair<const std::basic_string<char>, std::basic_string<char> > > > >(const string& name, map<string,string>& opts, const map<string,string>::mapped_type& value)
static voidPrint<std::map<std::basic_string<char>, double, std::less<std::basic_string<char> >, std::allocator<std::pair<const std::basic_string<char>, double> > > >(const map<string,double>& opts, ostream& os)
static voidPrint<std::map<std::basic_string<char>, int, std::less<std::basic_string<char> >, std::allocator<std::pair<const std::basic_string<char>, int> > > >(const map<string,int>& opts, ostream& os)
static voidPrint<std::map<std::basic_string<char>, std::basic_string<char>, std::less<std::basic_string<char> >, std::allocator<std::pair<const std::basic_string<char>, std::basic_string<char> > > > >(const map<string,string>& opts, ostream& os)

Data Members

private:
map<string,int>fIntOptsmap of the integer options
map<string,string>fNamOptsmap of the named options
map<string,double>fRealOptsmap of the real options

Class Charts

Inheritance Inherited Members Includes Libraries
Class Charts

Function documentation

GenAlgoOptions()
{}
virtual ~GenAlgoOptions()
IOptions * Clone() const
 use default copy constructor and assignment operator
 generic  methods for  retrivieng options 
 methods implementing the  IOptions interface
return new GenAlgoOptions(const ROOT::Math::GenAlgoOptions& )
bool GetRealValue(const char* name, double& val) const
 t.b.d need probably to implement in a .cxx file for CINT
bool GetIntValue(const char* name, int& val) const
bool GetNamedValue(const char* name, string& val) const
void SetRealValue(const char* name, double val)
 method wich need to be re-implemented by the derived classes
void SetIntValue(const char* name, int val)
void SetNamedValue(const char* name, const char* val)
void Print(ostream& os = std::cout) const
 print options
IOptions * FindDefault(const char* algoname)
 static methods to retrieve the default options
 find the option given a name
 return 0 if the option is not found
IOptions & Default(const char* algoname)
 retrieve options given the name
 if option is not found create a new GenAlgoOption for the given name
void PrintAllDefault(ostream& os = std::cout)
 print all the default options