Represents a Prolog like cut. When called it pops env_stack thus removing choicepoints.
More...
|
| | Cut (Engine *eng, int index) |
| | Constructs a Cut predicate.
|
| |
| bool | initialize_call () override |
| | Initializes the predicate call.
|
| |
| bool | apply_choice () override |
| | Applies a choice for the cut predicate.
|
| |
| void | set_cut_point (int cut_point) |
| |
| | DetPred (Engine *eng) |
| | Represents a deterministic predicate.
|
| |
| bool | apply_choice () override |
| | Noop - all the work is done in initialize_call.
|
| |
| bool | must_push () override |
| | Determines if the predicate needs to be pushed onto the environment stack when called.
|
| |
| | SemiDetPred (Engine *eng) |
| | Represents a semi-deterministic predicate.
|
| |
| bool | more_choices () override |
| | Applies a choice.
|
| |
| bool | must_push () override |
| | Determines if the predicate needs to be pushed onto the environment stack when called.
|
| |
| | 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.
|
| |
| void | wrap_with_once () |
| | Wraps the predicate with a once.
|
| |
| virtual | ~Pred ()=default |
| | Virtual destructor for proper cleanup.
|
| |
| virtual std::string | get_name () |
| | For debugging.
|
| |
Represents a Prolog like cut. When called it pops env_stack thus removing choicepoints.