11#ifndef ROOT_Math_IOptions
12#define ROOT_Math_IOptions
67 if (!ret )
MATH_ERROR_MSGVAL(
"IOptions::NamedValue",
" return empty string - named option not found",
name);
84 virtual bool GetRealValue(
const char *,
double &)
const {
return false; }
86 virtual bool GetIntValue(
const char *,
int &)
const {
return false; }
88 virtual bool GetNamedValue(
const char *, std::string &)
const {
return false; }
99 virtual void Print(std::ostream & = std::cout )
const {
MATH_INFO_MSG(
"IOptions::Print",
"it is not implemented");}
#define MATH_INFO_MSG(loc, str)
Pre-processor macro to report messages which can be configured to use ROOT error or simply an std::io...
#define MATH_ERROR_MSGVAL(loc, txt, x)
#define MATH_ERROR_MSG(loc, str)
Generic interface for defining configuration options of a numerical algorithm.
virtual bool GetIntValue(const char *, int &) const
virtual void SetNamedValue(const char *, const char *)
void SetValue(const char *name, int val)
double RValue(const char *name) const
std::string NamedValue(const char *name) const
virtual void SetRealValue(const char *, double)
method wich need to be re-implemented by the derived classes
virtual void SetIntValue(const char *, int)
virtual void Print(std::ostream &=std::cout) const
print options
void SetValue(const char *name, double val)
generic methods for retrivieng options
bool DoGetValue(const char *name, std::string &val) const
int IValue(const char *name) const
virtual IOptions * Clone() const =0
bool GetValue(const char *name, T &t) const
virtual bool GetRealValue(const char *, double &) const
void SetValue(const char *name, const char *val)
bool DoGetValue(const char *name, double &val) const
virtual bool GetNamedValue(const char *, std::string &) const
bool DoGetValue(const char *name, int &val) const
Namespace for new Math classes and functions.
tbb::task_arena is an alias of tbb::interface7::task_arena, which doesn't allow to forward declare tb...