61 std::string_view aDesc,
94 if (
const auto m =
minVal(); m != 0) {
95 return std::format(
"{}[{},{}]",
name(), m,
maxVal());
97 return std::format(
"{}[{}]",
name(),
maxVal() + 1);
DiscreteVariable(std::string_view aName, std::string_view aDesc)
Default constructor.
long maxVal() const
Returns the upper bound.
long _minBound_
The upper bound.
std::string toFast() const final
returns the size of the random discrete variable domain
std::string domain() const final
string represent the domain of the variable
long minVal() const
Returns the lower bound.
~RangeVariable() final
destructor
RangeVariable(std::string_view aName, std::string_view aDesc, long minVal, long maxVal)
constructors
long _maxBound_
The upper bound.
const std::string & name() const
returns the name of the variable
gum is the global namespace for all aGrUM entities
Header of gumRangeVariable.
Inline implementation of gumRangeVariable.