30 #ifndef GUM_MULTIDIM_INTERFACE_H 31 #define GUM_MULTIDIM_INTERFACE_H 45 #ifndef DOXYGEN_SHOULD_SKIP_THIS 160 virtual bool empty()
const = 0;
223 #ifndef GUM_NO_INLINE 225 #endif // GUM_NO_INLINE virtual void add(const DiscreteVariable &v)=0
Adds a new var to the variables of the multidimensional matrix.
virtual bool empty() const =0
Returns true if no var is in *this.
virtual Idx nbrDim() const =0
Returns the number of vars in the multidimensional container.
virtual bool contains(const DiscreteVariable &v) const =0
Returns true if var is in *this.
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.
Copyright 2005-2019 Pierre-Henri WUILLEMIN et Christophe GONZALES (LIP6) {prenom.nom}_at_lip6.fr.
virtual const DiscreteVariable & variable(Idx i) const =0
Returns a const ref to the ith var.
The generic class for storing (ordered) sequences of objects.
Interface for all classes addressing in a multiDim fashion.
Base class for discrete random variable.
Copyright 2005-2019 Pierre-Henri WUILLEMIN et Christophe GONZALES (LIP6) {prenom.nom}_at_lip6.fr.
std::ostream & operator<<(std::ostream &output, const BayesNet< GUM_SCALAR > &bn)
Prints map's DAG in output using the Graphviz-dot format.
Copyright 2005-2019 Pierre-Henri WUILLEMIN et Christophe GONZALES (LIP6) {prenom.nom}_at_lip6.fr.
virtual Size domainSize() const =0
Returns the product of the variables domain size.
virtual ~MultiDimInterface()
Class destructor.
virtual Idx pos(const DiscreteVariable &v) const =0
Returns the index of a variable.
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...
void replace(const DiscreteVariable &x, const DiscreteVariable &y)
Replace variables in this multidim.
virtual void erase(const DiscreteVariable &v)=0
Removes a var from the variables of the multidimensional matrix.
virtual const Sequence< const DiscreteVariable *> & variablesSequence() const =0
Returns a const ref to the sequence of DiscreteVariable*.
Size Idx
Type for indexes.
std::size_t Size
In aGrUM, hashed values are unsigned long int.
MultiDimInterface & operator>>(MultiDimInterface &c, const DiscreteVariable &v)
Removes a var from the variables of the MutliDimAdressing.