61 const std::string& aDesc,
100 if (
const auto m =
minVal(); m != 0) {
101 s <<
"[" << m <<
"," <<
maxVal() <<
"]";
103 s <<
"[" <<
maxVal() + 1 <<
"]";
DiscreteVariable(const std::string &aName, const std::string &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
RangeVariable(const std::string &aName, const std::string &aDesc, long minVal, long maxVal)
constructors
long minVal() const
Returns the lower bound.
~RangeVariable() final
destructor
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.