21 INLINE ConfigVariableInt::
22 ConfigVariableInt(
const string &name) :
24 _local_modified(initial_invalid_cache())
34 INLINE ConfigVariableInt::
35 ConfigVariableInt(
const string &name,
int 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 ConfigVariableInt::
54 ConfigVariableInt(
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 ConfigVariableInt::
83 operator int ()
const {
125 TAU_PROFILE(
"int ConfigVariableInt::get_value() const",
" ", TAU_USER);
126 if (!is_cache_valid(_local_modified)) {
int size() const
Returns the number of unique words in the variable.
void set_word(int n, int value)
Reassigns 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.
int get_default_value() const
Returns the variable's default value.
const ConfigDeclaration * get_default_value() const
Returns the default variable specified for this variable.
void set_value(int value)
Reassigns the variable's local value.
int get_int_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...
This is a generic, untyped ConfigVariable.
int operator[](int n) const
Returns the value of the variable's nth word.
void set_string_value(const string &value)
Changes the value assigned to this variable.
This is a convenience class to specialize ConfigVariable as an integer type.
A single declaration of a config variable, typically defined as one line in a .prc file...
void set_int_word(int n, int value)
Changes the nth word to the indicated value without affecting the other words.
void operator=(int value)
Reassigns the variable's local value.
int get_word(int n) const
Returns the variable's nth value.
int get_int_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...
int get_value() const
Returns the variable's value.