|
pl_search_cpp 1.4
|
Represents a choice predicate. More...
#include <pred.hpp>


Public Member Functions | |
| ChoicePred (Engine *eng, ChoiceIteratorPtr ch) | |
| Constructs a ChoicePred with the given choice iterator. | |
| void | initialize_call () override |
| Initializes the predicate call. | |
| bool | apply_choice () override |
| Applies a choice for the choice predicate. | |
| bool | more_choices () override |
| Checks if there are more choices for the choice predicate. | |
Public Member Functions inherited from pl_search::Pred | |
| Pred (Engine *eng) | |
| Default constructor. | |
| PredPtr | get_continuation () |
| Gets the continuation of the predicate. | |
| virtual void | set_continuation (PredPtr cont) |
| Sets the continuation of the predicate. | |
| PredPtr | last_pred () |
| Follows the continuation chain to the last predicate. | |
| bool | is_non_det () |
| Determines if the predicate is non-deterministic. | |
| void | wrap_with_once () |
| Wraps the predicate with a once. | |
| virtual | ~Pred ()=default |
| Virtual destructor for proper cleanup. | |
| std::string | get_name () |
| For debugging. | |
Public Attributes | |
| ChoiceIteratorPtr | choice_iterator |
| Pointer to the choice iterator. | |
Additional Inherited Members | |
Protected Attributes inherited from pl_search::Pred | |
| PredPtr | continuation |
| The continuation of the predicate. | |
| Engine * | engine |
Represents a choice predicate.
|
inline |
Constructs a ChoicePred with the given choice iterator.
| eng | Pointer to the engine. |
| ch | Pointer to the choice iterator. |
|
overridevirtual |
Applies a choice for the choice predicate.
Reimplemented from pl_search::Pred.
|
inlineoverridevirtual |
Initializes the predicate call.
Reimplemented from pl_search::Pred.
|
overridevirtual |
Checks if there are more choices for the choice predicate.
Reimplemented from pl_search::Pred.
| ChoiceIteratorPtr pl_search::ChoicePred::choice_iterator |
Pointer to the choice iterator.