![]() |
aGrUM 2.3.2
a C++ library for (probabilistic) graphical models
|
<agrum/FMDP/simulation/statesChecker.h> More...
#include <statesChecker.h>
Public Member Functions | |
Constructor & destructor. | |
| StatesChecker () | |
| Default constructor. | |
| ~StatesChecker () | |
| Default destructor. | |
Miscelleanous methods | |
| bool | checkState (const Instantiation &state) |
| void | addState (const Instantiation &) |
| Idx | nbVisitedStates () |
| void | reset (const Instantiation &) |
Private Member Functions | |
| void | _insertState_ (const Instantiation &, NodeId, Idx) |
Private Attributes | |
| Idx | _nbVisitedStates_ |
| MultiDimFunctionGraph< bool > * | _checker_ |
| NodeId | _checkerTrueId_ |
| NodeId | _checkerFalseId_ |
| Set< Instantiation * > | _visitedStates_ |
<agrum/FMDP/simulation/statesChecker.h>
Provides the necessary to check whether or not states have been already visited.
Definition at line 69 of file statesChecker.h.
| gum::StatesChecker::StatesChecker | ( | ) |
Default constructor.
Definition at line 46 of file statesChecker.cpp.
References StatesChecker(), _checker_, _checkerFalseId_, _checkerTrueId_, and _nbVisitedStates_.
Referenced by StatesChecker(), and ~StatesChecker().
| gum::StatesChecker::~StatesChecker | ( | ) |
Default destructor.
Definition at line 52 of file statesChecker.cpp.
References StatesChecker(), and _checker_.
|
private |
Definition at line 84 of file statesChecker.cpp.
References _checker_, _checkerFalseId_, _checkerTrueId_, gum::DiscreteVariable::domainSize(), gum::Instantiation::valFromPtr(), and gum::Instantiation::variablesSequence().
Referenced by addState(), and reset().
| void gum::StatesChecker::addState | ( | const Instantiation & | state | ) |
Definition at line 72 of file statesChecker.cpp.
References _checker_, _checkerFalseId_, _insertState_(), _nbVisitedStates_, and gum::Instantiation::valFromPtr().
|
inline |
|
inline |
| void gum::StatesChecker::reset | ( | const Instantiation & | initialState | ) |
Definition at line 57 of file statesChecker.cpp.
References _checker_, _checkerFalseId_, _checkerTrueId_, _insertState_(), _nbVisitedStates_, and gum::Instantiation::variablesSequence().
|
private |
Definition at line 108 of file statesChecker.h.
Referenced by StatesChecker(), ~StatesChecker(), _insertState_(), addState(), checkState(), and reset().
|
private |
Definition at line 109 of file statesChecker.h.
Referenced by StatesChecker(), _insertState_(), addState(), and reset().
|
private |
Definition at line 109 of file statesChecker.h.
Referenced by StatesChecker(), _insertState_(), and reset().
|
private |
Definition at line 106 of file statesChecker.h.
Referenced by StatesChecker(), addState(), nbVisitedStates(), and reset().
|
private |
Definition at line 111 of file statesChecker.h.