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