21 INLINE ConfigVariableDouble::
22 ConfigVariableDouble(
const string &name) :
24 _local_modified(initial_invalid_cache())
34 INLINE ConfigVariableDouble::
35 ConfigVariableDouble(
const string &name,
double default_value,
36 const string &description,
int flags) :
37 #ifdef PRC_SAVE_DESCRIPTIONS
42 _local_modified(initial_invalid_cache())
44 set_default_value(default_value);
53 INLINE ConfigVariableDouble::
54 ConfigVariableDouble(
const string &name,
const string &default_value,
55 const string &description,
int flags) :
56 #ifdef PRC_SAVE_DESCRIPTIONS
61 _local_modified(initial_invalid_cache())
63 _core->set_default_value(default_value);
82 INLINE ConfigVariableDouble::
83 operator double ()
const {
125 TAU_PROFILE(
"double ConfigVariableDouble::get_value() const",
" ", TAU_USER);
126 if (!is_cache_valid(_local_modified)) {
double get_word(int n) const
Returns the variable's nth value.
The internal definition of a ConfigVariable.
int get_num_words() const
Returns the number of words in the variable's value.
void set_value(double value)
Reassigns the variable's local value.
void operator=(double value)
Reassigns the variable's local value.
int size() const
Returns the number of unique words in the variable.
void set_double_word(int n, double value)
Changes the nth word to the indicated value without affecting the other words.
double get_default_value() const
Returns the variable's default value.
double get_double_word(int n) const
Returns the integer value of the nth word of the declaration's value, or 0 if there is no nth value...
const ConfigDeclaration * get_default_value() const
Returns the default variable specified for this variable.
double get_double_word(int n) const
Returns the integer value of the nth word of the variable's value, or 0 if there is no nth value...
void set_word(int n, double value)
Reassigns the variable's nth value.
This is a convenience class to specialize ConfigVariable as a floating-point type.
This is a generic, untyped ConfigVariable.
double get_value() const
Returns the variable's value.
void set_string_value(const string &value)
Changes the value assigned to this variable.
A single declaration of a config variable, typically defined as one line in a .prc file...
double operator[](int n) const
Returns the value of the variable's nth word.