ROOT 6.14/05 Reference Guide |
class implementing generic options for a numerical algorithm Just store the options in a map of string-value pairs
Definition at line 30 of file GenAlgoOptions.h.
Public Member Functions | |
GenAlgoOptions () | |
virtual | ~GenAlgoOptions () |
virtual IOptions * | Clone () const |
generic methods for retrivieng options More... | |
virtual bool | GetIntValue (const char *name, int &val) const |
virtual bool | GetNamedValue (const char *name, std::string &val) const |
virtual bool | GetRealValue (const char *name, double &val) const |
virtual void | Print (std::ostream &os=std::cout) const |
print options More... | |
virtual void | SetIntValue (const char *name, int val) |
virtual void | SetNamedValue (const char *name, const char *val) |
virtual void | SetRealValue (const char *name, double val) |
method wich need to be re-implemented by the derived classes More... | |
Public Member Functions inherited from ROOT::Math::IOptions | |
IOptions () | |
virtual | ~IOptions () |
template<typename T > | |
bool | GetValue (const char *name, T &t) const |
int | IValue (const char *name) const |
std::string | NamedValue (const char *name) const |
double | RValue (const char *name) const |
void | SetValue (const char *name, double val) |
generic methods for retrivieng options More... | |
void | SetValue (const char *name, int val) |
void | SetValue (const char *name, const char *val) |
Static Public Member Functions | |
static IOptions & | Default (const char *algoname) |
static IOptions * | FindDefault (const char *algoname) |
static void | PrintAllDefault (std::ostream &os=std::cout) |
print all the default options More... | |
Static Private Member Functions | |
template<class M > | |
static const M::mapped_type * | FindValue (const std::string &name, const M &opts) |
template<class M > | |
static void | InsertValue (const std::string &name, M &opts, const typename M::mapped_type &value) |
template<class M > | |
static void | Print (const M &opts, std::ostream &os) |
Private Attributes | |
std::map< std::string, int > | fIntOpts |
std::map< std::string, std::string > | fNamOpts |
std::map< std::string, double > | fRealOpts |
#include <Math/GenAlgoOptions.h>
|
inline |
Definition at line 34 of file GenAlgoOptions.h.
|
inlinevirtual |
Definition at line 36 of file GenAlgoOptions.h.
|
inlinevirtual |
generic methods for retrivieng options
Implements ROOT::Math::IOptions.
Definition at line 45 of file GenAlgoOptions.h.
|
static |
Definition at line 55 of file GenAlgoOptions.cxx.
|
static |
Definition at line 48 of file GenAlgoOptions.cxx.
|
inlinestaticprivate |
Definition at line 116 of file GenAlgoOptions.h.
|
inlinevirtual |
Reimplemented from ROOT::Math::IOptions.
Definition at line 59 of file GenAlgoOptions.h.
|
inlinevirtual |
Reimplemented from ROOT::Math::IOptions.
Definition at line 66 of file GenAlgoOptions.h.
|
inlinevirtual |
Reimplemented from ROOT::Math::IOptions.
Definition at line 52 of file GenAlgoOptions.h.
|
inlinestaticprivate |
Definition at line 126 of file GenAlgoOptions.h.
|
inlinevirtual |
print options
Reimplemented from ROOT::Math::IOptions.
Definition at line 88 of file GenAlgoOptions.h.
|
inlinestaticprivate |
Definition at line 138 of file GenAlgoOptions.h.
|
static |
print all the default options
Definition at line 69 of file GenAlgoOptions.cxx.
|
inlinevirtual |
Reimplemented from ROOT::Math::IOptions.
Definition at line 78 of file GenAlgoOptions.h.
|
inlinevirtual |
Reimplemented from ROOT::Math::IOptions.
Definition at line 82 of file GenAlgoOptions.h.
|
inlinevirtual |
method wich need to be re-implemented by the derived classes
Reimplemented from ROOT::Math::IOptions.
Definition at line 74 of file GenAlgoOptions.h.
|
private |
Definition at line 146 of file GenAlgoOptions.h.
|
private |
Definition at line 147 of file GenAlgoOptions.h.
|
private |
Definition at line 145 of file GenAlgoOptions.h.