45#ifndef DOXYGEN_SHOULD_SKIP_THIS
59 _name_(aName), _description_(aDesc) {
60 GUM_CONSTRUCTOR(Variable);
65 INLINE Variable::Variable(
const Variable& aRV) :
66 _name_(aRV._name_), _description_(aRV._description_) {
67 GUM_CONS_CPY(Variable);
72 INLINE Variable::~Variable() {
73 GUM_DESTRUCTOR(Variable);
78 INLINE Variable& Variable::operator=(
const Variable& aRV) {
80 if (
this != &aRV) copy_(aRV);
87 INLINE
void Variable::setName(std::string_view theValue) { _name_ = theValue; }
91 INLINE
const std::string& Variable::name()
const {
return _name_; }
95 INLINE
void Variable::setDescription(std::string_view theValue)
const {
96 _description_ = theValue;
101 INLINE
const std::string& Variable::description()
const {
return _description_; }
105 INLINE
bool Variable::operator==(
const Variable& aRV)
const {
106 if (varType() != aRV.varType())
return false;
107 if (name() != aRV.name())
return false;
108 return _checkSameDomain_(aRV);
Base class for every random variable.
std::string _name_
the name of the variable
void copy_(const Variable &aRV)
protected copy
Variable()
(protected) Default constructor
std::string _description_
the description of the variable since description is not a characteristic of a variable,...
gum is the global namespace for all aGrUM entities
Base class for random variable.