28 #ifndef GUM_VARIABLE_SELECTOR_H 29 #define GUM_VARIABLE_SELECTOR_H 78 double secondaryscore);
81 double secondaryscore);
120 #endif // GUM_VARIABLE_SELECTOR_H Priority queues in which the same element can appear several times.
HashTable< const DiscreteVariable *, double > __remainingVarsScore
HashTable associating to each variable its score.
Base class for discrete random variable.
HashTable< const DiscreteVariable *, double > __remainingVarsOtherScore
HashTable associating to each variable its 2nd score.
Safe iterators for the Set classDevelopers may consider using Set<x>::iterator_safe instead of SetIte...
void downdateScore(const DiscreteVariable *var, double score, double secondaryscore)
The set of remaining vars to select among.
Base class for discrete random variable.
gum is the global namespace for all aGrUM entities
SetIteratorSafe< const DiscreteVariable *> __rvi
The set of remaining vars to select among.
MultiPriorityQueue< double, double, std::greater< double > > __remainingScores
Heap keeping best score on top for immediate access.
The class for generic Hash Tables.
Representation of a setA Set is a structure that contains arbitrary elements.
void begin()
The set of remaining vars to select among.
~VariableSelector()
Default destructor.
Set< const DiscreteVariable *> __remainingVars
The set of remaining vars to select among.
void __removeVar(const DiscreteVariable *var)
The set of remaining vars to select among.
bool hasNext()
The set of remaining vars to select among.
const DiscreteVariable * select()
Select the most relevant variable.
void __addVar(const DiscreteVariable *var)
The set of remaining vars to select among.
<agrum/FMDP/planning/FunctionGraph/variableselector.h>
bool isEmpty()
The set of remaining vars to select among.
void updateScore(const DiscreteVariable *var, double score, double secondaryscore)
The set of remaining vars to select among.
void next()
The set of remaining vars to select among.
HashTable< double, Set< const DiscreteVariable *> *> __remainingVarsByScore
HashTable associating to each score the set of variable having that score.
const DiscreteVariable * current()
The set of remaining vars to select among.
VariableSelector(Set< const DiscreteVariable * > &startingSet)
Default constructor.
A MultiPriorityQueue is a heap in which each element has a mutable priority and duplicates are allowe...