43#ifndef DOXYGEN_SHOULD_SKIP_THIS
57 _name_(aName), _description_(aDesc) {
58 GUM_CONSTRUCTOR(Variable);
63 INLINE Variable::Variable(
const Variable& aRV) :
64 _name_(aRV._name_), _description_(aRV._description_) {
65 GUM_CONS_CPY(Variable);
70 INLINE Variable::~Variable() {
71 GUM_DESTRUCTOR(Variable);
76 INLINE Variable& Variable::operator=(
const Variable& aRV) {
78 if (
this != &aRV) copy_(aRV);
85 INLINE
void Variable::setName(
const std::string& theValue) { _name_ = theValue; }
89 INLINE
const std::string& Variable::name()
const {
return _name_; }
93 INLINE
void Variable::setDescription(
const std::string& theValue)
const {
94 _description_ = theValue;
99 INLINE
const std::string& Variable::description()
const {
return _description_; }
103 INLINE
bool Variable::operator==(
const Variable& aRV)
const {
104 if (varType() != aRV.varType())
return false;
105 if (name() != aRV.name())
return false;
106 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