78 parId =
_checker_->node(parId)->son(parModa);
92 if (parentId)
_checker_->manager()->setSon(parentId, parentModa, varId);
93 else _checker_->manager()->setRootNode(varId);
95 if (moda == state.
valFromPtr(curVar)) parentModa = moda;
Base class for discrete random variable.
virtual Size domainSize() const =0
Class for assigning/browsing values to tuples of discrete variables.
const Sequence< const DiscreteVariable * > & variablesSequence() const final
Returns the sequence of DiscreteVariable of this instantiation.
Idx valFromPtr(const DiscreteVariable *pvar) const
Returns the current value of a given variable.
Class implementingting a function graph.
Safe iterators for Sequence.
~StatesChecker()
Default destructor.
void addState(const Instantiation &)
MultiDimFunctionGraph< bool > * _checker_
void reset(const Instantiation &)
void _insertState_(const Instantiation &, NodeId, Idx)
StatesChecker()
Default constructor.
Size Idx
Type for indexes.
Size NodeId
Type for node ids.
gum is the global namespace for all aGrUM entities
Headers of the States Checker class.