ConfigVariableInt¶
-
class
ConfigVariableInt
¶ Bases:
ConfigVariable
This is a convenience class to specialize
ConfigVariable
as an integer type.Inheritance diagram
-
ConfigVariableInt
(std::string const &name)¶
-
ConfigVariableInt
(std::string const &name, int default_value, std::string const &description = string(), int flags = 0)¶
-
ConfigVariableInt
(std::string const &name, std::string const &default_value, std::string const &description = string(), int flags = 0)¶
-
ConfigVariableInt
(ConfigVariableInt const&) = default¶
-
int
get_default_value
(void) const¶ Returns the variable’s default value.
-
int
get_value
(void) const¶ Returns the variable’s value.
-
int
get_word
(std::size_t n) const¶ Returns the variable’s nth value.
-
void
set_value
(int value)¶ Reassigns the variable’s local value.
-
void
set_word
(std::size_t n, int value)¶ Reassigns the variable’s nth value. This makes a local copy of the variable’s overall value.
-
std::size_t
size
(void) const¶ Returns the number of unique words in the variable.
-