pl_search_cpp 1.4
|
Represents a deterministic predicate. More...
#include <pred.hpp>
Public Member Functions | |
DetPred (Engine *eng) | |
Represents a deterministic predicate. | |
bool | apply_choice () override |
Noop - all the work is done in initialize_call. | |
![]() | |
SemiDetPred (Engine *eng) | |
Represents a semi-deterministic predicate. | |
bool | more_choices () override |
Applies a choice. | |
bool | is_non_det () |
![]() | |
Pred (Engine *eng) | |
Default constructor. | |
virtual void | initialize_call () |
Initializes the predicate call. | |
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. | |
Additional Inherited Members | |
![]() | |
PredPtr | continuation |
The continuation of the predicate. | |
Engine * | engine |
Represents a deterministic predicate.
|
inline |
Represents a deterministic predicate.
eng | Pointer to the engine. |
|
inlineoverridevirtual |
Noop - all the work is done in initialize_call.
Reimplemented from pl_search::Pred.
Reimplemented in pl_search::Loop.