Value iterator for the union of two value iterators. More...
#include <gecode/iter/values-union.hpp>
Protected Attributes | |
| I | i |
| First iterator. | |
| J | j |
| Second iterator. | |
| int | v |
| Current value. | |
| bool | done |
| Whether iterator is done. | |
Constructors and initialization | |
| Union (void) | |
| Default constructor. | |
| Union (I &i, J &j) | |
| Initialize with values from i and j. | |
| void | init (I &i, J &j) |
| Initialize with values from i and j. | |
Iteration control | |
| bool | operator() (void) const |
| Test whether iterator is still at a value or done. | |
| void | operator++ (void) |
| Move iterator to next value (if possible). | |
Value access | |
| int | val (void) const |
| Return current value. | |
Detailed Description
class Gecode::Iter::Values::Union< I, J >
Value iterator for the union of two value iterators.
Definition at line 43 of file values-union.hpp.
Constructor & Destructor Documentation
◆ Union() [1/2]
|
inline |
Default constructor.
Definition at line 82 of file values-union.hpp.
◆ Union() [2/2]
|
inline |
Initialize with values from i and j.
Definition at line 115 of file values-union.hpp.
Member Function Documentation
◆ init()
|
inline |
Initialize with values from i and j.
Definition at line 108 of file values-union.hpp.
◆ operator()()
|
inline |
Test whether iterator is still at a value or done.
Definition at line 121 of file values-union.hpp.
◆ operator++()
|
inline |
Move iterator to next value (if possible).
Definition at line 86 of file values-union.hpp.
◆ val()
|
inline |
Return current value.
Definition at line 127 of file values-union.hpp.
Member Data Documentation
◆ i
|
protected |
First iterator.
Definition at line 46 of file values-union.hpp.
◆ j
|
protected |
Second iterator.
Definition at line 48 of file values-union.hpp.
◆ v
|
protected |
Current value.
Definition at line 50 of file values-union.hpp.
◆ done
|
protected |
Whether iterator is done.
Definition at line 52 of file values-union.hpp.
The documentation for this class was generated from the following file:
- gecode/iter/values-union.hpp
