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 31 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 wich 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 retrivieng 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:
[legend]

Constructor & Destructor Documentation

◆ IOptions()

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

Definition at line 35 of file IOptions.h.

◆ ~IOptions()

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

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

◆ DoGetValue() [2/3]

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

Definition at line 106 of file IOptions.h.

◆ DoGetValue() [3/3]

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

Definition at line 108 of file IOptions.h.

◆ GetIntValue()

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

Reimplemented in ROOT::Math::GenAlgoOptions.

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

◆ GetRealValue()

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

Reimplemented in ROOT::Math::GenAlgoOptions.

Definition at line 84 of file IOptions.h.

◆ GetValue()

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

Definition at line 74 of file IOptions.h.

◆ IValue()

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

Definition at line 57 of file IOptions.h.

◆ NamedValue()

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

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

◆ RValue()

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

Definition at line 50 of file IOptions.h.

◆ SetIntValue()

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

Reimplemented in ROOT::Math::GenAlgoOptions.

Definition at line 93 of file IOptions.h.

◆ SetNamedValue()

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

Reimplemented in ROOT::Math::GenAlgoOptions.

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

◆ SetValue() [1/3]

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

Definition at line 47 of file IOptions.h.

◆ SetValue() [2/3]

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

generic methods for retrivieng options

set option value

Definition at line 45 of file IOptions.h.

◆ SetValue() [3/3]

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

Definition at line 46 of file IOptions.h.


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