Logo ROOT   6.14/05
Reference Guide
List of all members | Public Member Functions | Private Member Functions | List of all members
ROOT::Math::IOptions Class Referenceabstract

Generic interface for defining configuration options of a numerical algorithm.

Definition at line 30 of file IOptions.h.

Public Member Functions

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

Private Member Functions

bool DoGetValue (const char *name, double &val) const
 
bool DoGetValue (const char *name, int &val) const
 
bool DoGetValue (const char *name, std::string &val) const
 

#include <Math/IOptions.h>

Inheritance diagram for ROOT::Math::IOptions:
[legend]

Constructor & Destructor Documentation

◆ IOptions()

ROOT::Math::IOptions::IOptions ( )
inline

Definition at line 34 of file IOptions.h.

◆ ~IOptions()

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

Definition at line 36 of file IOptions.h.

Member Function Documentation

◆ Clone()

virtual IOptions* ROOT::Math::IOptions::Clone ( ) const
pure virtual

Implemented in ROOT::Math::GenAlgoOptions.

◆ DoGetValue() [1/3]

bool ROOT::Math::IOptions::DoGetValue ( const char *  name,
double &  val 
) const
inlineprivate

Definition at line 103 of file IOptions.h.

◆ DoGetValue() [2/3]

bool ROOT::Math::IOptions::DoGetValue ( const char *  name,
int &  val 
) const
inlineprivate

Definition at line 105 of file IOptions.h.

◆ DoGetValue() [3/3]

bool ROOT::Math::IOptions::DoGetValue ( const char *  name,
std::string &  val 
) const
inlineprivate

Definition at line 107 of file IOptions.h.

◆ GetIntValue()

virtual bool ROOT::Math::IOptions::GetIntValue ( const char *  ,
int &   
) const
inlinevirtual

Reimplemented in ROOT::Math::GenAlgoOptions.

Definition at line 85 of file IOptions.h.

◆ GetNamedValue()

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

Reimplemented in ROOT::Math::GenAlgoOptions.

Definition at line 87 of file IOptions.h.

◆ GetRealValue()

virtual bool ROOT::Math::IOptions::GetRealValue ( const char *  ,
double &   
) const
inlinevirtual

Reimplemented in ROOT::Math::GenAlgoOptions.

Definition at line 83 of file IOptions.h.

◆ GetValue()

template<typename T >
bool ROOT::Math::IOptions::GetValue ( const char *  name,
T &  t 
) const
inline

Definition at line 73 of file IOptions.h.

◆ IValue()

int ROOT::Math::IOptions::IValue ( const char *  name) const
inline

Definition at line 56 of file IOptions.h.

◆ NamedValue()

std::string ROOT::Math::IOptions::NamedValue ( const char *  name) const
inline

Definition at line 63 of file IOptions.h.

◆ Print()

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

print options

Reimplemented in ROOT::Math::GenAlgoOptions.

Definition at line 98 of file IOptions.h.

◆ RValue()

double ROOT::Math::IOptions::RValue ( const char *  name) const
inline

Definition at line 49 of file IOptions.h.

◆ SetIntValue()

virtual void ROOT::Math::IOptions::SetIntValue ( const char *  ,
int   
)
inlinevirtual

Reimplemented in ROOT::Math::GenAlgoOptions.

Definition at line 92 of file IOptions.h.

◆ SetNamedValue()

virtual void ROOT::Math::IOptions::SetNamedValue ( const char *  ,
const char *   
)
inlinevirtual

Reimplemented in ROOT::Math::GenAlgoOptions.

Definition at line 94 of file IOptions.h.

◆ SetRealValue()

virtual void ROOT::Math::IOptions::SetRealValue ( const char *  ,
double   
)
inlinevirtual

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

Reimplemented in ROOT::Math::GenAlgoOptions.

Definition at line 90 of file IOptions.h.

◆ SetValue() [1/3]

void ROOT::Math::IOptions::SetValue ( const char *  name,
double  val 
)
inline

generic methods for retrivieng options

set option value

Definition at line 44 of file IOptions.h.

◆ SetValue() [2/3]

void ROOT::Math::IOptions::SetValue ( const char *  name,
int  val 
)
inline

Definition at line 45 of file IOptions.h.

◆ SetValue() [3/3]

void ROOT::Math::IOptions::SetValue ( const char *  name,
const char *  val 
)
inline

Definition at line 46 of file IOptions.h.


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