FEI Package Browser (Single Doxygen Collection)
Version of the Day
|
#include <fei_Param.hpp>
Public Types | |
enum | ParamType { STRING = 0, DOUBLE = 1, INT = 2, BOOL = 3, VOID = 4, BAD_TYPE = 5 } |
Public Member Functions | |
Param (const char *name, const char *value) | |
Param (const char *name, double value) | |
Param (const char *name, int value) | |
Param (const char *name, const void *value) | |
Param (const char *name, bool value) | |
Param (const Param &src) | |
virtual | ~Param () |
Param & | operator= (const Param &src) |
const std::string & | getName () const |
ParamType | getType () const |
const std::string & | getStringValue () const |
double | getDoubleValue () const |
int | getIntValue () const |
bool | getBoolValue () const |
const void * | getVoidValue () const |
Private Attributes | |
ParamType | type_ |
std::string | name_ |
std::string | string_value_ |
double | double_value_ |
int | int_value_ |
bool | bool_value_ |
const void * | void_value_ |
Simple container that pairs a name with a parameter that can be one of several different primitive types. This container is used as the value-type of the class fei::ParameterSet.
Instances of fei::Param are fully defined at construction, and can not be altered later, except by assignment.
Definition at line 23 of file fei_Param.hpp.
enumeration for parameter-types
Enumerator | |
---|---|
STRING | |
DOUBLE | |
INT | |
BOOL | |
VOID | |
BAD_TYPE |
Definition at line 26 of file fei_Param.hpp.
fei::Param::Param | ( | const char * | name, |
const char * | value | ||
) |
fei::Param::Param | ( | const char * | name, |
double | value | ||
) |
fei::Param::Param | ( | const char * | name, |
int | value | ||
) |
fei::Param::Param | ( | const char * | name, |
const void * | value | ||
) |
fei::Param::Param | ( | const char * | name, |
bool | value | ||
) |
fei::Param::Param | ( | const Param & | src | ) |
Copy Constructor
Definition at line 80 of file fei_Param.cpp.
|
virtual |
Destructor
Definition at line 91 of file fei_Param.cpp.
fei::Param & fei::Param::operator= | ( | const Param & | src | ) |
Assignment operator
Definition at line 95 of file fei_Param.cpp.
References bool_value_, double_value_, int_value_, name_, string_value_, and void_value_.
|
inline |
Query for the name of the parameter
Definition at line 92 of file fei_Param.hpp.
References name_.
Referenced by fei::utils::convert_ParameterSet_to_strings(), Trilinos_Helpers::copy_parameterset(), and fei::ParameterSet::findOffset().
|
inline |
Query for the type of the parameter
Definition at line 98 of file fei_Param.hpp.
Referenced by fei::utils::convert_ParameterSet_to_strings(), Trilinos_Helpers::copy_parameterset(), fei::ParameterSet::getBoolParamValue(), fei::ParameterSet::getDoubleParamValue(), fei::ParameterSet::getIntParamValue(), fei::ParameterSet::getStringParamValue(), fei::ParameterSet::getVoidParamValue(), fei::Factory::parameters(), snl_fei::Factory::parameters(), fei::Matrix_core::parameters(), test_Utils::serialtest3(), fei::MatrixGraph_Impl2::setParameters(), and fei::VectorSpace::setParameters().
|
inline |
Query for string value. Returned string is empty if getType() doesn't return Param::STRING
Definition at line 104 of file fei_Param.hpp.
Referenced by fei::utils::convert_ParameterSet_to_strings(), Trilinos_Helpers::copy_parameterset(), fei::ParameterSet::getStringParamValue(), snl_fei::Factory::parameters(), fei::Factory::parameters(), fei::Matrix_core::parameters(), fei::MatrixGraph_Impl2::setParameters(), and fei::VectorSpace::setParameters().
|
inline |
Query for double value. Returned double is meaningless if getType() doesn't return Param::DOUBLE
Definition at line 110 of file fei_Param.hpp.
Referenced by fei::utils::convert_ParameterSet_to_strings(), Trilinos_Helpers::copy_parameterset(), and fei::ParameterSet::getDoubleParamValue().
|
inline |
Query for int value. Returned int is meaningless if getType() doesn't return Param::INT
Definition at line 116 of file fei_Param.hpp.
Referenced by fei::utils::convert_ParameterSet_to_strings(), Trilinos_Helpers::copy_parameterset(), fei::ParameterSet::getDoubleParamValue(), fei::ParameterSet::getIntParamValue(), fei::MatrixGraph_Impl2::setParameters(), and fei::VectorSpace::setParameters().
|
inline |
Query for bool value. Returned bool is meaningless if getType() doesn't return Param::BOOL
Definition at line 122 of file fei_Param.hpp.
Referenced by fei::utils::convert_ParameterSet_to_strings(), Trilinos_Helpers::copy_parameterset(), fei::ParameterSet::getBoolParamValue(), snl_fei::Factory::parameters(), fei::MatrixGraph_Impl2::setParameters(), and fei::VectorSpace::setParameters().
|
inline |
Query for void-pointer value. Returned void-pointer is meaningless if getType() doesn't return Param::VOID
Definition at line 128 of file fei_Param.hpp.
Referenced by fei::ParameterSet::getVoidParamValue().
|
private |
Definition at line 81 of file fei_Param.hpp.
|
private |
Definition at line 82 of file fei_Param.hpp.
Referenced by getName(), operator=(), and Param().
|
private |
Definition at line 83 of file fei_Param.hpp.
Referenced by operator=(), and Param().
|
private |
Definition at line 84 of file fei_Param.hpp.
Referenced by operator=().
|
private |
Definition at line 85 of file fei_Param.hpp.
Referenced by operator=().
|
private |
Definition at line 86 of file fei_Param.hpp.
Referenced by operator=().
|
private |
Definition at line 87 of file fei_Param.hpp.
Referenced by operator=().