21 #ifndef DOXYGEN_SHOULD_SKIP_THIS 35 const std::string& aDesc) :
36 Variable(aName, aDesc) {
61 return (Variable::operator==(aRV) && (
domainSize() == aRV.domainSize()));
66 return (!
operator==(aRV));
74 std::vector< std::string > v;
76 v.push_back(
label(i));
81 #endif // DOXYGEN_SHOULD_SKIP_THIS std::vector< std::string > labels() const
vector of labels
DiscreteVariable & operator=(const DiscreteVariable &aRV)
Copy operator.
Base class for discrete random variable.
gum is the global namespace for all aGrUM entities
virtual bool operator==(const DiscreteVariable &aRV) const
equality operator
virtual Size domainSize() const =0
virtual std::string label(Idx i) const =0
get the indice-th label. This method is pure virtual.
virtual bool operator!=(const DiscreteVariable &aRV) const
inequality operator
Variable & operator=(const Variable &aRV)
Copy operator.
virtual ~DiscreteVariable()
destructor
DiscreteVariable()
(protected) Default constructor
Variable()
(protected) Default constructor