17 INLINE ConfigVariableInt64::
18 ConfigVariableInt64(
const std::string &name) :
20 _local_modified(initial_invalid_cache())
28 INLINE ConfigVariableInt64::
29 ConfigVariableInt64(
const std::string &name, int64_t default_value,
30 const std::string &description,
int flags) :
31 #ifdef PRC_SAVE_DESCRIPTIONS
36 _local_modified(initial_invalid_cache())
38 set_default_value(default_value);
45 INLINE ConfigVariableInt64::
46 ConfigVariableInt64(
const std::string &name,
const std::string &default_value,
47 const std::string &description,
int flags) :
48 #ifdef PRC_SAVE_DESCRIPTIONS
53 _local_modified(initial_invalid_cache())
55 _core->set_default_value(default_value);
70 INLINE ConfigVariableInt64::
71 operator int64_t ()
const {
97 set_int64_word(0, value);
103 INLINE int64_t ConfigVariableInt64::
105 TAU_PROFILE(
"int64_t ConfigVariableInt64::get_value() const",
" ", TAU_USER);
106 if (!is_cache_valid(_local_modified)) {
116 INLINE int64_t ConfigVariableInt64::
117 get_default_value()
const {
119 if (decl !=
nullptr) {
130 return get_int64_word(n);
139 set_int64_word(n, value);
size_t size() const
Returns the number of unique words in the variable.
The internal definition of a ConfigVariable.
int64_t operator [](size_t n) const
Returns the value of the variable's nth word.
void set_string_value(const std::string &value)
Changes the value assigned to this variable.
void operator=(int64_t value)
Reassigns the variable's local value.
int64_t get_word(size_t n) const
Returns the variable's nth value.
This is a convenience class to specialize ConfigVariable as a 64-bit integer type.
size_t get_num_words() const
Returns the number of words in the variable's value.
This is a generic, untyped ConfigVariable.
int64_t get_int64_word(size_t n) const
Returns the int64 value of the nth word of the declaration's value, or 0 if there is no nth value.
void set_word(size_t n, int64_t value)
Reassigns the variable's nth value.
A single declaration of a config variable, typically defined as one line in a .prc file,...
set_value
Reassigns the variable's local value.