aGrUM  0.16.0
statesChecker.h
Go to the documentation of this file.
1 
30 // =========================================================================
31 #ifndef GUM_STATES_CHECKER_H
32 #define GUM_STATES_CHECKER_H
33 // =========================================================================
34 // =========================================================================
35 #include <agrum/core/sequence.h>
37 // =========================================================================
38 
39 namespace gum {
40 
41 
49  class StatesChecker {
50  public:
51  // ==========================================================================
53  // ==========================================================================
55 
59  StatesChecker();
60 
65 
67 
68  // ==========================================================================
70  // ==========================================================================
72 
73  bool checkState(const Instantiation& state) { return __checker->get(state); }
74 
75  void addState(const Instantiation&);
76 
78 
79  void reset(const Instantiation&);
80 
82 
83  private:
84  void __insertState(const Instantiation&, NodeId, Idx);
85 
87 
90 
92  };
93 } /* namespace gum */
94 
95 #endif // GUM_STATES_CHECKER_H
bool checkState(const Instantiation &state)
Definition: statesChecker.h:73
Copyright 2005-2019 Pierre-Henri WUILLEMIN et Christophe GONZALES (LIP6) {prenom.nom}_at_lip6.fr.
~StatesChecker()
Default destructor.
Set< Instantiation *> __visitedStates
Definition: statesChecker.h:91
Copyright 2005-2019 Pierre-Henri WUILLEMIN et Christophe GONZALES (LIP6) {prenom.nom}_at_lip6.fr.
Definition: agrum.h:25
Representation of a setA Set is a structure that contains arbitrary elements.
Definition: set.h:165
void addState(const Instantiation &)
StatesChecker()
Default constructor.
Copyright 2005-2019 Pierre-Henri WUILLEMIN et Christophe GONZALES (LIP6) {prenom.nom}_at_lip6.fr.
Class for assigning/browsing values to tuples of discrete variables.
Definition: instantiation.h:83
void reset(const Instantiation &)
Size Idx
Type for indexes.
Definition: types.h:53
<agrum/FMDP/simulation/statesChecker.h>
Definition: statesChecker.h:49
virtual GUM_SCALAR get(const Instantiation &i) const
Returns the value pointed by i.
Size NodeId
Type for node ids.
Definition: graphElements.h:98
MultiDimFunctionGraph< bool > * __checker
Definition: statesChecker.h:88
void __insertState(const Instantiation &, NodeId, Idx)