|
Clingo
|
Class to add clauses to a running search. More...
#include <solve.hh>
Public Member Functions | |
| SolveControl (clingo_solve_control_t *ctl) | |
| Constructor from the underlying C representation. | |
| auto | base () const -> Base |
| Get base associated with the solve control. | |
| void | add_clause (ProgramLiteralSpan lits) const |
| Add clause to the running search. | |
| void | add_nogood (ProgramLiteralSpan lits) const |
| Add clause to the running search. | |
Class to add clauses to a running search.
|
inlineexplicit |
Constructor from the underlying C representation.
| ctl | the C representation of the solve control object |
|
inline |
Add clause to the running search.
| lits | the literals of the clause to add |
|
inline |
Add clause to the running search.
This is equivalent to calling Clingo::SolveControl::add_clause() with the negated literals.
| lits | the literals of the nogood to add |
|
inline |
Get base associated with the solve control.