|
pl_search_cpp 2.2
|
Represents a failure predicate that always fails when called. More...
#include <pred.hpp>


Public Member Functions | |
| FailPred (Trail *trail) | |
| Constructs a FailPred with the given trail -it does nothing and always fails when called. | |
| void | set_continuation (PredPtr cont) override |
| Sets the continuation of the predicate. | |
| bool | call () override |
| call method for FailPred always returns false, indicating failure. | |
Public Member Functions inherited from pl_search::Pred | |
| Pred (Trail *trail) | |
| Default constructor. | |
| PredPtr | get_continuation () |
| Gets the continuation of the predicate. | |
| PredPtr | last_pred () |
| Follows the continuation chain to the last predicate. | |
| virtual void | call_init () |
| Initialize call. | |
| bool | call_continuation () |
| Calls the continuation of the predicate - first call_init and then call. | |
| virtual | ~Pred ()=default |
| Virtual destructor for proper cleanup. | |
| virtual std::string | get_name () |
| For debugging. | |
Additional Inherited Members | |
Protected Attributes inherited from pl_search::Pred | |
| PredPtr | continuation |
| The continuation of the predicate. | |
| Trail * | trail |
| Pointer to the trail for managing variable bindings. | |
Represents a failure predicate that always fails when called.
|
inline |
Constructs a FailPred with the given trail -it does nothing and always fails when called.
| trail | Pointer to the trail. |
|
inlineoverridevirtual |
call method for FailPred always returns false, indicating failure.
Reimplemented from pl_search::Pred.
|
inlineoverridevirtual |
Sets the continuation of the predicate.
| cont | A shared pointer to the continuation predicate. |
Reimplemented from pl_search::Pred.