pl_search_cpp 1.4
Loading...
Searching...
No Matches
Public Member Functions | List of all members
pl_search::DetPred Class Reference

Represents a deterministic predicate. More...

#include <pred.hpp>

Inheritance diagram for pl_search::DetPred:
Inheritance graph
[legend]
Collaboration diagram for pl_search::DetPred:
Collaboration graph
[legend]

Public Member Functions

 DetPred (Engine *eng)
 Represents a deterministic predicate.
 
bool apply_choice () override
 Noop - all the work is done in initialize_call.
 
- Public Member Functions inherited from pl_search::SemiDetPred
 SemiDetPred (Engine *eng)
 Represents a semi-deterministic predicate.
 
bool more_choices () override
 Applies a choice.
 
bool is_non_det ()
 
- Public Member Functions inherited from pl_search::Pred
 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

- Protected Attributes inherited from pl_search::Pred
PredPtr continuation
 The continuation of the predicate.
 
Engineengine
 

Detailed Description

Represents a deterministic predicate.

Constructor & Destructor Documentation

◆ DetPred()

pl_search::DetPred::DetPred ( Engine eng)
inline

Represents a deterministic predicate.

Parameters
engPointer to the engine.

Member Function Documentation

◆ apply_choice()

bool pl_search::DetPred::apply_choice ( )
inlineoverridevirtual

Noop - all the work is done in initialize_call.

Returns
True

Reimplemented from pl_search::Pred.

Reimplemented in pl_search::Loop.


The documentation for this class was generated from the following file: