ROOT  6.06/09
Reference Guide
Public Member Functions | Static Public Member Functions | Static Private Member Functions | Private Attributes | List of all members
ROOT::Math::GenAlgoOptions Class Reference

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

Definition at line 32 of file GenAlgoOptions.h.

Public Member Functions

 GenAlgoOptions ()
 
virtual ~GenAlgoOptions ()
 
virtual IOptionsClone () const
 generic methods for retrivieng options More...
 
virtual bool GetRealValue (const char *name, double &val) const
 
virtual bool GetIntValue (const char *name, int &val) const
 
virtual bool GetNamedValue (const char *name, std::string &val) const
 
virtual void SetRealValue (const char *name, double val)
 method wich need to be re-implemented by the derived classes More...
 
virtual void SetIntValue (const char *name, int val)
 
virtual void SetNamedValue (const char *name, const char *val)
 
virtual void Print (std::ostream &os=std::cout) const
 print options More...
 
- Public Member Functions inherited from ROOT::Math::IOptions
 IOptions ()
 
virtual ~IOptions ()
 
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)
 
double RValue (const char *name) const
 
int IValue (const char *name) const
 
std::string NamedValue (const char *name) const
 
template<typename T >
bool GetValue (const char *name, T &t) const
 

Static Public Member Functions

static IOptionsFindDefault (const char *algoname)
 
static IOptionsDefault (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, doublefRealOpts
 
std::map< std::string, int > fIntOpts
 
std::map< std::string, std::string > fNamOpts
 

#include <Math/GenAlgoOptions.h>

+ Inheritance diagram for ROOT::Math::GenAlgoOptions:
+ Collaboration diagram for ROOT::Math::GenAlgoOptions:

Constructor & Destructor Documentation

ROOT::Math::GenAlgoOptions::GenAlgoOptions ( )
inline

Definition at line 36 of file GenAlgoOptions.h.

Referenced by Clone().

virtual ROOT::Math::GenAlgoOptions::~GenAlgoOptions ( )
inlinevirtual

Definition at line 38 of file GenAlgoOptions.h.

Member Function Documentation

virtual IOptions* ROOT::Math::GenAlgoOptions::Clone ( ) const
inlinevirtual

generic methods for retrivieng options

Implements ROOT::Math::IOptions.

Definition at line 47 of file GenAlgoOptions.h.

IOptions & ROOT::Math::GenAlgoOptions::Default ( const char *  algoname)
static
IOptions * ROOT::Math::GenAlgoOptions::FindDefault ( const char *  algoname)
static
template<class M >
static const M::mapped_type* ROOT::Math::GenAlgoOptions::FindValue ( const std::string &  name,
const M &  opts 
)
inlinestaticprivate

Definition at line 118 of file GenAlgoOptions.h.

Referenced by GetIntValue(), GetNamedValue(), and GetRealValue().

virtual bool ROOT::Math::GenAlgoOptions::GetIntValue ( const char *  name,
int &  val 
) const
inlinevirtual

Reimplemented from ROOT::Math::IOptions.

Definition at line 61 of file GenAlgoOptions.h.

virtual bool ROOT::Math::GenAlgoOptions::GetNamedValue ( const char *  name,
std::string &  val 
) const
inlinevirtual

Reimplemented from ROOT::Math::IOptions.

Definition at line 68 of file GenAlgoOptions.h.

virtual bool ROOT::Math::GenAlgoOptions::GetRealValue ( const char *  name,
double val 
) const
inlinevirtual

Reimplemented from ROOT::Math::IOptions.

Definition at line 54 of file GenAlgoOptions.h.

template<class M >
static void ROOT::Math::GenAlgoOptions::InsertValue ( const std::string &  name,
M &  opts,
const typename M::mapped_type &  value 
)
inlinestaticprivate

Definition at line 128 of file GenAlgoOptions.h.

Referenced by SetIntValue(), SetNamedValue(), and SetRealValue().

virtual void ROOT::Math::GenAlgoOptions::Print ( std::ostream &  os = std::cout) const
inlinevirtual

print options

Reimplemented from ROOT::Math::IOptions.

Definition at line 90 of file GenAlgoOptions.h.

Referenced by PrintAllDefault().

template<class M >
static void ROOT::Math::GenAlgoOptions::Print ( const M &  opts,
std::ostream &  os 
)
inlinestaticprivate

Definition at line 140 of file GenAlgoOptions.h.

void ROOT::Math::GenAlgoOptions::PrintAllDefault ( std::ostream &  os = std::cout)
static

print all the default options

Definition at line 68 of file GenAlgoOptions.cxx.

virtual void ROOT::Math::GenAlgoOptions::SetIntValue ( const char *  name,
int  val 
)
inlinevirtual
virtual void ROOT::Math::GenAlgoOptions::SetNamedValue ( const char *  name,
const char *  val 
)
inlinevirtual

Reimplemented from ROOT::Math::IOptions.

Definition at line 84 of file GenAlgoOptions.h.

virtual void ROOT::Math::GenAlgoOptions::SetRealValue ( const char *  name,
double  val 
)
inlinevirtual

method wich need to be re-implemented by the derived classes

Reimplemented from ROOT::Math::IOptions.

Definition at line 76 of file GenAlgoOptions.h.

Referenced by ROOT::Math::VegasParameters::operator()(), and ROOT::Math::MiserParameters::operator()().

Member Data Documentation

std::map<std::string, int> ROOT::Math::GenAlgoOptions::fIntOpts
private

Definition at line 148 of file GenAlgoOptions.h.

Referenced by GetIntValue(), Print(), and SetIntValue().

std::map<std::string, std::string> ROOT::Math::GenAlgoOptions::fNamOpts
private

Definition at line 149 of file GenAlgoOptions.h.

Referenced by GetNamedValue(), Print(), and SetNamedValue().

std::map<std::string, double> ROOT::Math::GenAlgoOptions::fRealOpts
private

Definition at line 147 of file GenAlgoOptions.h.

Referenced by GetRealValue(), Print(), and SetRealValue().


The documentation for this class was generated from the following files: