Iterator type for the theory assignment.
More...
#include <theory.hh>
|
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.
|
|
Iterator type for the theory assignment.
◆ iterator() [1/2]
Clingo::TheoryAssignment::iterator::iterator |
( |
TheoryAssignment const & |
assignment | ) |
|
|
inline |
Constructor for the iterator.
- Parameters
-
assignment | the theory assignment to iterate over |
◆ iterator() [2/2]
Clingo::TheoryAssignment::iterator::iterator |
( |
| ) |
|
|
default |
The default constructor for the iterator.
For interface completeness, should not be used.
◆ operator*()
auto Clingo::TheoryAssignment::iterator::operator* |
( |
| ) |
const -> reference |
|
inline |
Get the current value of the iterator.
- Returns
- the current value of the iterator
◆ operator++()
auto Clingo::TheoryAssignment::iterator::operator++ |
( |
| ) |
-> iterator & |
|
inline |
Increment the iterator to the next value.
- Returns
- a reference to self
◆ operator==
Check whether their are still values in the assignment.
- Parameters
-
a | the iterator to compare |
b | the sentinel |
- Returns
- whether the iterator is equal to the sentinel
The documentation for this class was generated from the following file: