TBTK
Need a break? Support the development by playing Polarity Puzzles
TBTK::ParameterSet Class Reference

Public Member Functions

 ParameterSet ()
 
 ~ParameterSet ()
 
void addInt (std::string name, int value)
 
void addDouble (std::string name, double value)
 
void addComplex (std::string name, std::complex< double > value)
 
void addString (std::string name, std::string value)
 
void addBool (std::string name, bool value)
 
void setInt (std::string name, int value)
 
void setDouble (std::string name, double value)
 
void setComplex (std::string name, std::complex< double > value)
 
void setString (std::string name, std::string value)
 
void setBool (std::string name, bool value)
 
int getInt (std::string name) const
 
double getDouble (std::string name) const
 
std::complex< double > getComplex (std::string name) const
 
std::string getString (std::string name) const
 
bool getBool (std::string name) const
 
int getNumInt () const
 
int getNumDouble () const
 
int getNumComplex () const
 
int getNumString () const
 
int getNumBool () const
 
std::string getIntName (int n) const
 
std::string getDoubleName (int n) const
 
std::string getComplexName (int n) const
 
std::string getStringName (int n) const
 
std::string getBoolName (int n) const
 
int getIntValue (int n) const
 
double getDoubleValue (int n) const
 
std::complex< double > getComplexValue (int n) const
 
std::string getStringValue (int n) const
 
bool getBoolValue (int n) const
 
bool intExists (std::string name) const
 
bool doubleExists (std::string name) const
 
bool complexExists (std::string name) const
 
bool stringExists (std::string name) const
 
bool boolExists (std::string name) const
 

Constructor & Destructor Documentation

◆ ParameterSet()

TBTK::ParameterSet::ParameterSet ( )

Constructor.

◆ ~ParameterSet()

TBTK::ParameterSet::~ParameterSet ( )

Destrutor.

Member Function Documentation

◆ addBool()

void TBTK::ParameterSet::addBool ( std::string  name,
bool  value 
)

Add boolean parameter.

◆ addComplex()

void TBTK::ParameterSet::addComplex ( std::string  name,
std::complex< double >  value 
)

Add complex parameter.

◆ addDouble()

void TBTK::ParameterSet::addDouble ( std::string  name,
double  value 
)

Add double parameter.

◆ addInt()

void TBTK::ParameterSet::addInt ( std::string  name,
int  value 
)

Add integer parameter.

◆ addString()

void TBTK::ParameterSet::addString ( std::string  name,
std::string  value 
)

Add string parameter.

◆ boolExists()

bool TBTK::ParameterSet::boolExists ( std::string  name) const

Returns true if an boolean parameter with given name exists.

◆ complexExists()

bool TBTK::ParameterSet::complexExists ( std::string  name) const

Returns true if a complex parameter with given name exists.

◆ doubleExists()

bool TBTK::ParameterSet::doubleExists ( std::string  name) const

Returns true if a double parameter with given name exists.

◆ getBool()

bool TBTK::ParameterSet::getBool ( std::string  name) const

Get boolean parameter.

◆ getBoolName()

std::string TBTK::ParameterSet::getBoolName ( int  n) const

Get booleanname.

◆ getBoolValue()

bool TBTK::ParameterSet::getBoolValue ( int  n) const

Get boolean value.

◆ getComplex()

std::complex<double> TBTK::ParameterSet::getComplex ( std::string  name) const

Get complex parameter.

◆ getComplexName()

std::string TBTK::ParameterSet::getComplexName ( int  n) const

Get complex name.

◆ getComplexValue()

std::complex<double> TBTK::ParameterSet::getComplexValue ( int  n) const

Get complex value.

◆ getDouble()

double TBTK::ParameterSet::getDouble ( std::string  name) const

Get double parameter.

◆ getDoubleName()

std::string TBTK::ParameterSet::getDoubleName ( int  n) const

Get double name.

◆ getDoubleValue()

double TBTK::ParameterSet::getDoubleValue ( int  n) const

Get double value.

◆ getInt()

int TBTK::ParameterSet::getInt ( std::string  name) const

Get integer parameter.

◆ getIntName()

std::string TBTK::ParameterSet::getIntName ( int  n) const

Get integer name.

◆ getIntValue()

int TBTK::ParameterSet::getIntValue ( int  n) const

Get integer value.

◆ getNumBool()

int TBTK::ParameterSet::getNumBool ( ) const

Get number of boolean parameters.

◆ getNumComplex()

int TBTK::ParameterSet::getNumComplex ( ) const

Get number of complex parameters.

◆ getNumDouble()

int TBTK::ParameterSet::getNumDouble ( ) const

Get number of double parameters.

◆ getNumInt()

int TBTK::ParameterSet::getNumInt ( ) const

Get number of integer parameters.

◆ getNumString()

int TBTK::ParameterSet::getNumString ( ) const

Get number of string parameters.

◆ getString()

std::string TBTK::ParameterSet::getString ( std::string  name) const

Get string parameter.

◆ getStringName()

std::string TBTK::ParameterSet::getStringName ( int  n) const

Get string name.

◆ getStringValue()

std::string TBTK::ParameterSet::getStringValue ( int  n) const

Get string value.

◆ intExists()

bool TBTK::ParameterSet::intExists ( std::string  name) const

Returns true if an integer parameter with given name exists.

◆ setBool()

void TBTK::ParameterSet::setBool ( std::string  name,
bool  value 
)

Change boolean parameter.

◆ setComplex()

void TBTK::ParameterSet::setComplex ( std::string  name,
std::complex< double >  value 
)

Change complex parameter.

◆ setDouble()

void TBTK::ParameterSet::setDouble ( std::string  name,
double  value 
)

Change double parameter.

◆ setInt()

void TBTK::ParameterSet::setInt ( std::string  name,
int  value 
)

Change integer parameter.

◆ setString()

void TBTK::ParameterSet::setString ( std::string  name,
std::string  value 
)

Change string parameter.

◆ stringExists()

bool TBTK::ParameterSet::stringExists ( std::string  name) const

Returns true if an string parameter with given name exists.


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