28 #ifndef GUM_VARIABLE_H 29 #define GUM_VARIABLE_H 110 void setName(
const std::string& theValue);
114 const std::string& name()
const;
120 void setDescription(
const std::string& theValue)
const;
124 const std::string& description()
const;
128 virtual VarType varType()
const = 0;
131 virtual const std::string domain()
const = 0;
148 Variable(
const std::string& aName,
const std::string& aDesc);
167 #ifndef GUM_NO_INLINE
Base class for every random variable.
gum is the global namespace for all aGrUM entities
std::ostream & operator<<(std::ostream &output, const BayesNet< GUM_SCALAR > &bn)
Prints map's DAG in output using the Graphviz-dot format.
bool operator==(const TiXmlString &a, const TiXmlString &b)
std::string __name
the name of the variable
bool operator!=(const TiXmlString &a, const TiXmlString &b)
Variable()
(protected) Default constructor
std::string __description
the description of the variable since description is not a characteristic of a variable, we allow the description to be changed even in a const reference.