
Range iterator for computing the complement (described by values) More...
#include <ranges-compl.hpp>
Protected Member Functions | |
| void | start (void) |
| Initialize. | |
Protected Attributes | |
| int | UMIN |
| Values describing the universe set. | |
| int | UMAX |
| I | i |
| Iterator to compute complement for. | |
Constructors and initialization | |
| ComplVal (void) | |
| Default constructor. | |
| ComplVal (int umin, int umax, I &i) | |
| Initialize with iterator i. | |
| void | init (int umin, int umax, I &i) |
| Initialize with iterator i. | |
Iteration control | |
| void | operator++ (void) |
| Move iterator to next range (if possible) | |
Range iterator for computing the complement (described by values)
The complement is computed with respect to a given universe set provided as arguments upon initialization. The universe must always be a superset!
Definition at line 89 of file ranges-compl.hpp.
| Gecode::Iter::Ranges::ComplVal< I >::ComplVal | ( | void | ) | [inline] |
Default constructor.
Definition at line 189 of file ranges-compl.hpp.
| Gecode::Iter::Ranges::ComplVal< I >::ComplVal | ( | int | umin, |
| int | umax, | ||
| I & | i | ||
| ) | [inline] |
Initialize with iterator i.
Definition at line 193 of file ranges-compl.hpp.
| void Gecode::Iter::Ranges::ComplVal< I >::start | ( | void | ) | [inline, protected] |
Initialize.
Definition at line 168 of file ranges-compl.hpp.
| void Gecode::Iter::Ranges::ComplVal< I >::init | ( | int | umin, |
| int | umax, | ||
| I & | i | ||
| ) | [inline] |
Initialize with iterator i.
Definition at line 200 of file ranges-compl.hpp.
| void Gecode::Iter::Ranges::ComplVal< I >::operator++ | ( | void | ) | [inline] |
Move iterator to next range (if possible)
Definition at line 206 of file ranges-compl.hpp.
int Gecode::Iter::Ranges::ComplVal< I >::UMIN [protected] |
Values describing the universe set.
Definition at line 92 of file ranges-compl.hpp.
int Gecode::Iter::Ranges::ComplVal< I >::UMAX [protected] |
Definition at line 92 of file ranges-compl.hpp.
I Gecode::Iter::Ranges::ComplVal< I >::i [protected] |
Iterator to compute complement for.
Definition at line 94 of file ranges-compl.hpp.