Clingo
|
Class to represent a theory assignment. More...
#include <theory.hh>
Classes | |
class | iterator |
Iterator type for the theory assignment. More... | |
struct | sentinel |
Sentinel type for the end of the theory assignment. More... | |
Public Member Functions | |
TheoryAssignment (clingo_theory_t const *theory, uint32_t thread_id) | |
Construct a theory assignment from its C representation and a thread id. | |
auto | lookup (Symbol const &sym) const -> std::optional< size_t > |
Lookup a symbol in the theory assignment. | |
auto | at (size_t index) const -> std::pair< Symbol, std::variant< int, double, Symbol > > |
Get the symbol value pair at the given index in the theory assignment. | |
auto | begin () const -> iterator |
Get an iterator pointing to the first element of the theory assignment. | |
Static Public Member Functions | |
static auto | end () -> sentinel |
Get sentinel marking the end of the theory assignment. | |
Class to represent a theory assignment.
|
inlineexplicit |
Construct a theory assignment from its C representation and a thread id.
theory | the C theory representation |
thread_id | the thread id for which to get the assignment |
|
inline |
Get the symbol value pair at the given index in the theory assignment.
index | the index of the value to get |
Get an iterator pointing to the first element of the theory assignment.
Get sentinel marking the end of the theory assignment.
Lookup a symbol in the theory assignment.
sym | the symbol to look up |