123 const std::string&
name()
const;
152 Variable(
const std::string& aName,
const std::string& aDesc);
Base class for every random variable.
void setName(const std::string &theValue)
sets the name of the variable
virtual Variable * clone() const =0
Copy Factory.
void setDescription(const std::string &theValue) const
sets the description of the variable
std::string _name_
the name of the variable
virtual bool _checkSameDomain_(const Variable &aRV) const =0
check the domain
void copy_(const Variable &aRV)
protected copy
Variable()
(protected) Default constructor
const std::string & name() const
returns the name of the variable
virtual VarType varType() const =0
returns the type of variable
std::string _description_
the description of the variable since description is not a characteristic of a variable,...
Variable(const Variable &aRV)
copy constructor
const std::string & description() const
returns the description of the variable
virtual std::string domain() const =0
string represent the domain of the variable
Variable & operator=(const Variable &aRV)
Copy operator.
Variable(const std::string &aName, const std::string &aDesc)
constructor
virtual ~Variable()
destructor
bool operator==(const Variable &aRV) const
equality operator
gum is the global namespace for all aGrUM entities
std::ostream & operator<<(std::ostream &s, const gum::Variable &LDRV)
for friendly displaying the content of the variable