Clingo
|
Iterator to iterate over models found during solving. More...
#include <solve.hh>
Public Types | |
using | iterator_category = std::input_iterator_tag |
The iterator category. | |
using | difference_type = std::ptrdiff_t |
The difference type. | |
using | value_type = ConstModel |
The value type, which are models. | |
using | pointer = ConstModel * |
The pointer type. | |
using | reference = ConstModel & |
The reference type. | |
Public Member Functions | |
iterator ()=default | |
The default constructor. | |
auto | operator* () const -> reference |
Get a reference to the current model. | |
auto | operator-> () const -> pointer |
Member access operator to get a pointer to the current model. | |
auto | operator++ () -> iterator & |
Increment the iterator to the next model. | |
auto | operator++ (int) -> iterator |
Postfix increment the iterator. | |
Friends | |
class | SolveHandle |
auto | operator== (const iterator &a, const iterator &b) -> bool |
Compare iterators for equality. | |
auto | operator== (iterator const &a, sentinel const &b) -> bool |
Check whether all models have been exhausted. | |
Iterator to iterate over models found during solving.
|
default |
The default constructor.
Construct an iterator in invalid state. For interface completeness.
Postfix increment the iterator.
For interface completeness. Do not use.
Compare iterators for equality.
For interface completeness. Do not use.
a | the first iterator to compare |
b | the second iterator to compare |
Check whether all models have been exhausted.
a | the iterator to compare |
b | the sentinel to compare |