class ParaParamLongint More...
#include <paraParamSet.h>
Public Member Functions | |
ParaParamLongint (const char *name, const char *inComment, long long value, const long long min, const long long max) | |
constructor More... | |
~ParaParamLongint () | |
destructor More... | |
int | getType () const |
get parameter type More... | |
long long | getDefaultValue () const |
get default value of this long int parameter More... | |
long long | getValue () const |
get current value of this long int parameter More... | |
void | setDefaultValue () |
set default value of this long int parameter More... | |
void | setValue (long long value) |
set current value of this long int parameter More... | |
bool | isDefaultValue () const |
check if current value is default value or not More... | |
long long | getMinValue () const |
get minimum value of this long int parameter More... | |
long long | getMaxValue () const |
get maximum value of this long More... | |
Public Member Functions inherited from ParaParam | |
ParaParam (const char *inParamName, const char *inComment) | |
constructor More... | |
virtual | ~ParaParam () |
destructor More... | |
const char * | getParamName () const |
getter of parameter name More... | |
const char * | getComment () const |
getter of comments string More... | |
virtual int | getType () const =0 |
get parameter type More... | |
Private Attributes | |
const long long | defaultValue |
default long int parameter value More... | |
long long | currentValue |
current long int parameter value More... | |
const long long | minValue |
minimum long int parameter value More... | |
const long long | maxValue |
maximum long int parameter value More... | |
class ParaParamLongint
Definition at line 412 of file paraParamSet.h.
ParaParamLongint | ( | const char * | name, |
const char * | inComment, | ||
long long | value, | ||
const long long | min, | ||
const long long | max | ||
) |
constructor
name | long int parameter name |
inComment | comment string of this long int parameter |
value | default value of this long int parameter |
min | minimum value of this long int parameter |
max | maximum value of this long int parameter |
Definition at line 424 of file paraParamSet.h.
~ParaParamLongint | ( | ) |
destructor
Definition at line 442 of file paraParamSet.h.
long long getDefaultValue | ( | ) | const |
get default value of this long int parameter
Definition at line 461 of file paraParamSet.h.
References ParaParamLongint::defaultValue.
Referenced by ParaParamSet::getLongintParamDefaultValue().
long long getMaxValue | ( | ) | const |
get maximum value of this long
Definition at line 519 of file paraParamSet.h.
References ParaParamLongint::maxValue.
long long getMinValue | ( | ) | const |
get minimum value of this long int parameter
Definition at line 510 of file paraParamSet.h.
References ParaParamLongint::minValue.
Referenced by ParaParamSet::paramParaseLongint().
|
virtual |
get parameter type
Implements ParaParam.
Definition at line 451 of file paraParamSet.h.
References UG::ParaParamTypeLongint.
long long getValue | ( | ) | const |
get current value of this long int parameter
Definition at line 471 of file paraParamSet.h.
References ParaParamLongint::currentValue.
Referenced by ParaParamSetMpi::createDiffParams(), ParaParamSet::getLongintParamValue(), and ParaParamSet::write().
bool isDefaultValue | ( | ) | const |
check if current value is default value or not
Definition at line 500 of file paraParamSet.h.
References ParaParamLongint::currentValue, and ParaParamLongint::defaultValue.
Referenced by ParaParamSetMpi::createDiffParams(), ParaParamSet::isLongintParamDefaultValue(), and ParaParamSet::write().
void setDefaultValue | ( | ) |
set default value of this long int parameter
Definition at line 480 of file paraParamSet.h.
References ParaParamLongint::currentValue, and ParaParamLongint::defaultValue.
Referenced by ParaParamSet::setLongintParamDefaultValue().
void setValue | ( | long long | value | ) |
set current value of this long int parameter
value | value to be set |
Definition at line 489 of file paraParamSet.h.
References ParaParamLongint::currentValue.
Referenced by ParaParamSet::paramParaseLongint(), ParaParamSetMpi::setDiffParams(), and ParaParamSet::setLongintParamValue().
|
private |
current long int parameter value
Definition at line 415 of file paraParamSet.h.
Referenced by ParaParamLongint::getValue(), ParaParamLongint::isDefaultValue(), ParaParamLongint::setDefaultValue(), and ParaParamLongint::setValue().
|
private |
default long int parameter value
Definition at line 414 of file paraParamSet.h.
Referenced by ParaParamLongint::getDefaultValue(), ParaParamLongint::isDefaultValue(), and ParaParamLongint::setDefaultValue().
|
private |
maximum long int parameter value
Definition at line 417 of file paraParamSet.h.
Referenced by ParaParamLongint::getMaxValue().
|
private |
minimum long int parameter value
Definition at line 416 of file paraParamSet.h.
Referenced by ParaParamLongint::getMinValue().