Logo ROOT  
Reference Guide
Loading...
Searching...
No Matches
ROOT::Math::IOptions Class Referenceabstract

Generic interface for defining configuration options of a numerical algorithm.

Definition at line 28 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
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 which need to be re-implemented by the derived classes
void SetValue (const char *name, const char *val)
void SetValue (const char *name, double val)
 generic methods for retrieving options
void SetValue (const char *name, int 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:
ROOT::Math::GenAlgoOptions

Constructor & Destructor Documentation

◆ IOptions()

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

Definition at line 32 of file IOptions.h.

◆ ~IOptions()

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

Definition at line 34 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 75 of file IOptions.h.

◆ DoGetValue() [2/3]

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

Definition at line 77 of file IOptions.h.

◆ DoGetValue() [3/3]

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

Definition at line 79 of file IOptions.h.

◆ GetIntValue()

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

Reimplemented in ROOT::Math::GenAlgoOptions.

Definition at line 64 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 65 of file IOptions.h.

◆ GetRealValue()

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

Reimplemented in ROOT::Math::GenAlgoOptions.

Definition at line 63 of file IOptions.h.

◆ GetValue()

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

Definition at line 54 of file IOptions.h.

◆ IValue()

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

Definition at line 21 of file IOptions.cxx.

◆ NamedValue()

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

Definition at line 30 of file IOptions.cxx.

◆ Print()

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

print options

Reimplemented in ROOT::Math::GenAlgoOptions.

Definition at line 56 of file IOptions.cxx.

◆ RValue()

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

Definition at line 12 of file IOptions.cxx.

◆ SetIntValue()

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

Reimplemented in ROOT::Math::GenAlgoOptions.

Definition at line 45 of file IOptions.cxx.

◆ SetNamedValue()

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

Reimplemented in ROOT::Math::GenAlgoOptions.

Definition at line 50 of file IOptions.cxx.

◆ SetRealValue()

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

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

Reimplemented in ROOT::Math::GenAlgoOptions.

Definition at line 40 of file IOptions.cxx.

◆ SetValue() [1/3]

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

Definition at line 44 of file IOptions.h.

◆ SetValue() [2/3]

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

generic methods for retrieving options

set option value

Definition at line 42 of file IOptions.h.

◆ SetValue() [3/3]

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

Definition at line 43 of file IOptions.h.


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