Clingo C API
C API for clingo providing high level functions to control grounding and solving.
|
Functions and data structures to inspect programs.
Classes | |
struct | clingo_ground_program_observer |
An instance of this struct has to be registered with a solver to observe ground directives as they are passed to the solver. More... | |
Typedefs | |
typedef int | clingo_heuristic_type_t |
Corresponding type to clingo_heuristic_type_e. | |
typedef int | clingo_external_type_t |
Corresponding type to clingo_external_type_e. | |
typedef struct clingo_ground_program_observer | clingo_ground_program_observer_t |
An instance of this struct has to be registered with a solver to observe ground directives as they are passed to the solver. More... | |
Enumerations | |
enum | clingo_heuristic_type_e { clingo_heuristic_type_level = 0, clingo_heuristic_type_sign = 1, clingo_heuristic_type_factor = 2, clingo_heuristic_type_init = 3, clingo_heuristic_type_true = 4, clingo_heuristic_type_false = 5 } |
Enumeration of different heuristic modifiers. More... | |
enum | clingo_external_type_e { clingo_external_type_free = 0, clingo_external_type_true = 1, clingo_external_type_false = 2, clingo_external_type_release = 3 } |
Enumeration of different external statements. More... | |
typedef struct clingo_ground_program_observer clingo_ground_program_observer_t |
An instance of this struct has to be registered with a solver to observe ground directives as they are passed to the solver.
Not all callbacks have to be implemented and can be set to NULL if not needed. If one of the callbacks in the struct fails, grounding is stopped. If a non-recoverable clingo API call fails, a callback must return false. Otherwise clingo_error_unknown should be set and false returned.
Enumeration of different heuristic modifiers.