|
pl_search_cpp 1.4
|
Choice iterator for variables. More...
#include <choice_iterator.hpp>


Public Member Functions | |
| VarChoiceIterator (Engine *engine, PVarPtr v, std::vector< TermPtr > ch) | |
| Constructs a VarChoiceIterator. | |
| bool | has_next () override |
| Checks if there are more choices available. | |
| virtual bool | make_choice () override |
| Makes a choice. | |
Public Member Functions inherited from pl_search::ChoiceIterator | |
| virtual bool | test_choice () |
| Tests a choice which would tyically involve constraint deductions based on the choice. | |
| virtual | ~ChoiceIterator ()=default |
| Virtual destructor for proper cleanup. | |
Protected Attributes | |
| Engine * | engine |
| Pointer to the Engine. | |
| int | index |
| Current index in the choices vector. | |
| PVarPtr | var |
| Pointer to the variable. | |
| std::vector< TermPtr > | choices |
| Reference to the vector of choices. | |
Choice iterator for variables.
|
inline |
Constructs a VarChoiceIterator.
| engine | Pointer to the Engine. |
| v | Pointer to the variable. |
| ch | Reference to the vector of choices. |
|
inlineoverridevirtual |
Checks if there are more choices available.
Implements pl_search::ChoiceIterator.
|
inlineoverridevirtual |
Makes a choice.
Implements pl_search::ChoiceIterator.
|
protected |
Reference to the vector of choices.
|
protected |
Current index in the choices vector.
|
protected |
Pointer to the variable.