ROOT logo
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
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)

Data Members

private:
map<std::string,int>fIntOptsmap of the integer options
map<std::string,std::string>fNamOptsmap of the named options
map<std::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