23 #ifndef DOXYGEN_SHOULD_SKIP_THIS 37 const std::string& aDesc) :
38 Variable(aName, aDesc) {
63 return (Variable::operator==(aRV) && (
domainSize() == aRV.domainSize()));
68 return (!
operator==(aRV));
76 std::vector< std::string > v;
78 v.push_back(
label(i));
83 #endif // DOXYGEN_SHOULD_SKIP_THIS std::vector< std::string > labels() const
vector of labels
DiscreteVariable & operator=(const DiscreteVariable &aRV)
Copy operator.
Copyright 2005-2019 Pierre-Henri WUILLEMIN et Christophe GONZALES (LIP6) {prenom.nom}_at_lip6.fr.
Copyright 2005-2019 Pierre-Henri WUILLEMIN et Christophe GONZALES (LIP6) {prenom.nom}_at_lip6.fr.
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