21 INLINE ConfigVariableBool::
22 ConfigVariableBool(
const string &name) :
24 _local_modified(initial_invalid_cache())
34 INLINE ConfigVariableBool::
35 ConfigVariableBool(
const string &name,
bool default_value,
36 const string &description,
int flags) :
37 #ifdef PRC_SAVE_DESCRIPTIONS
42 _local_modified(initial_invalid_cache())
44 _core->set_default_value(default_value ?
"1" :
"0");
53 INLINE ConfigVariableBool::
54 ConfigVariableBool(
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 ConfigVariableBool::
83 operator bool ()
const {
125 TAU_PROFILE(
"bool ConfigVariableBool::get_value() const",
" ", TAU_USER);
126 if (!is_cache_valid(_local_modified)) {
void set_bool_word(int n, bool value)
Changes the nth word to the indicated value without affecting the other words.
bool get_bool_word(int n) const
Returns the boolean value of the nth word of the declaration's value, or false if there is no nth val...
void set_word(int n, bool value)
Reassigns the variable's nth value.
bool get_default_value() const
Returns the variable's default value.
This is a convenience class to specialize ConfigVariable as a boolean type.
const ConfigDeclaration * get_default_value() const
Returns the default variable specified for this variable.
void operator=(bool value)
Reassigns the variable's local value.
int size() const
Returns the number of unique words in the variable.
This is a generic, untyped ConfigVariable.
bool get_word(int n) const
Returns the variable's nth value.
bool operator[](int n) const
Returns the value of the variable's nth word.
int get_num_words() const
Returns the number of words in the variable's value.
void set_string_value(const string &value)
Changes the value assigned to this variable.
bool get_value() const
Returns the variable's value.
bool get_bool_word(int n) const
Returns the boolean value of the nth word of the variable's value, or false if there is no nth value...
A single declaration of a config variable, typically defined as one line in a .prc file...
void set_value(bool value)
Reassigns the variable's local value.