Clingo
|
Class to capture the result of solve calls. More...
#include <solve.hh>
Public Member Functions | |
SolveResult (clingo_solve_result_bitset_t res) | |
Construct the solve result from its C representation. | |
auto | satisfiable () const -> bool |
Check if the result is satisfiable. | |
auto | unsatisfiable () const -> bool |
Check if the result is unsatisfiable. | |
auto | unknown () const -> bool |
Check if the result is unknown. | |
auto | exhausted () const -> bool |
Check if the search space was exhausted. | |
auto | interrupted () const -> bool |
Check if the search was interrupted. | |
auto | to_string () const -> std::string_view |
Convert the solve result to a string representation. | |
Class to capture the result of solve calls.
|
inlineexplicit |
Construct the solve result from its C representation.
res | the C representation of the solve result |
Check if the search space was exhausted.
Check if the search was interrupted.
Check if the result is satisfiable.
|
inline |
Convert the solve result to a string representation.
Check if the result is unknown.
Check if the result is unsatisfiable.