Gecode::Iter::Ranges::Virt::Union Class Reference
[Range iterators with virtual member functions]
Range iterator for computing union (binary). More...
#include <virtual-ranges-union.hpp>
Constructors and initialization | |
|
| |
| Union (void) | |
| Default constructor. | |
| Union (Iterator *i, Iterator *j) | |
| Initialize with iterator i and j. | |
| ~Union (void) | |
| Destructor. | |
Range access | |
|
| |
| virtual int | min (void) const |
| Return smallest value of range. | |
| virtual int | max (void) const |
| Return largest value of range. | |
| virtual unsigned int | width (void) const |
| Return width of range (distance between minimum and maximum). | |
Iteration control | |
|
| |
| void | operator++ (void) |
| Move iterator to next range (if possible). | |
| virtual bool | operator() (void) |
| Test whether iterator is still at a range or done. | |
Detailed Description
Range iterator for computing union (binary).
Definition at line 46 of file virtual-ranges-union.hpp.
Constructor & Destructor Documentation
| Gecode::Iter::Ranges::Virt::Union::Union | ( | void | ) | [inline] |
Default constructor.
Definition at line 166 of file virtual-ranges-union.hpp.
Initialize with iterator i and j.
Definition at line 169 of file virtual-ranges-union.hpp.
| Gecode::Iter::Ranges::Virt::Union::~Union | ( | void | ) | [inline] |
Destructor.
Definition at line 175 of file virtual-ranges-union.hpp.
Member Function Documentation
| int Gecode::Iter::Ranges::Virt::Union::min | ( | void | ) | const [inline, virtual] |
Return smallest value of range.
Implements Gecode::Iter::Ranges::Virt::Iterator.
Definition at line 181 of file virtual-ranges-union.hpp.
| int Gecode::Iter::Ranges::Virt::Union::max | ( | void | ) | const [inline, virtual] |
Return largest value of range.
Implements Gecode::Iter::Ranges::Virt::Iterator.
Definition at line 184 of file virtual-ranges-union.hpp.
| unsigned int Gecode::Iter::Ranges::Virt::Union::width | ( | void | ) | const [inline, virtual] |
Return width of range (distance between minimum and maximum).
Implements Gecode::Iter::Ranges::Virt::Iterator.
Definition at line 187 of file virtual-ranges-union.hpp.
| void Gecode::Iter::Ranges::Virt::Union::operator++ | ( | void | ) | [inline, virtual] |
Move iterator to next range (if possible).
Implements Gecode::Iter::Ranges::Virt::Iterator.
Definition at line 137 of file virtual-ranges-union.hpp.
| bool Gecode::Iter::Ranges::Virt::Union::operator() | ( | void | ) | [inline, virtual] |
Test whether iterator is still at a range or done.
Implements Gecode::Iter::Ranges::Virt::Iterator.
Definition at line 178 of file virtual-ranges-union.hpp.
The documentation for this class was generated from the following file:
- gecode/iter/virtual-ranges-union.hpp (Revision: 7989)
