ConfigVariableDouble

class ConfigVariableDouble

Bases: ConfigVariable

This is a convenience class to specialize ConfigVariable as a floating- point type.

Inheritance diagram

Inheritance diagram of ConfigVariableDouble

explicit ConfigVariableDouble(std::string const &name)
ConfigVariableDouble(std::string const &name, double default_value, std::string const &description = string(), int flags = 0)
ConfigVariableDouble(std::string const &name, std::string const &default_value, std::string const &description = string(), int flags = 0)
ConfigVariableDouble(ConfigVariableDouble const&) = default
double get_default_value(void) const

Returns the variable’s default value.

double get_value(void) const

Returns the variable’s value.

double get_word(std::size_t n) const

Returns the variable’s nth value.

void set_value(double value)

Reassigns the variable’s local value.

void set_word(std::size_t n, double 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.