Base class for discrete random variable.
virtual Size domainSize() const =0
Exception : a similar element already exists.
void replace(const DiscreteVariable &x, const DiscreteVariable &y)
Replace variables in this multidim.
virtual void replace_(const DiscreteVariable *x, const DiscreteVariable *y)=0
This is called by MultiDimContainer::replace() to proceed with the replacing between x and y.
virtual bool contains(const DiscreteVariable &v) const =0
Returns true if var is in *this.
Exception : the element we looked for cannot be found.
Exception : operation not allowed.
#define GUM_ERROR(type, msg)
Headers of MultiDimInterface.
gum is the global namespace for all aGrUM entities