Clingo
|
Iterator type for the theory assignment. More...
#include <theory.hh>
Public Types | |
using | iterator_category = std::input_iterator_tag |
The iterator category. | |
using | value_type = std::pair< Symbol, std::variant< int, double, Symbol > > |
The value type of the iterator, which is a pair of a symbol and its value. | |
using | difference_type = std::ptrdiff_t |
The difference type of the iterator. | |
using | pointer = value_type * |
The pointer type of the iterator. | |
using | reference = value_type & |
The reference type of the iterator. | |
Public Member Functions | |
iterator (TheoryAssignment const &assignment) | |
Constructor for the iterator. | |
iterator ()=default | |
The default constructor for the iterator. | |
auto | operator* () const -> reference |
Get the current value of the iterator. | |
auto | operator++ () -> iterator & |
Increment the iterator to the next value. | |
auto | operator++ (int) -> iterator |
Increment the iterator to the next value (postfix). | |
Friends | |
auto | operator== (iterator const &a, sentinel const &b) -> bool |
Check whether their are still values in the assignment. | |
Iterator type for the theory assignment.
|
inline |
Constructor for the iterator.
assignment | the theory assignment to iterate over |
|
default |
The default constructor for the iterator.
For interface completeness, should not be used.
Get the current value of the iterator.
Increment the iterator to the next value.
Check whether their are still values in the assignment.
a | the iterator to compare |
b | the sentinel |