Gecode::Iter::Ranges::Virt::NaryInter Class Reference
[Range iterators with virtual member functions]
Inherits Gecode::Iter::Ranges::MinMax, and Gecode::Iter::Ranges::Virt::Iterator.
Detailed Description
Range iterator for intersection for any number of iterators.Definition at line 91 of file virtual-ranges-inter.icc.
Constructors and initialization | |
| NaryInter (void) | |
| Default constructor. | |
| NaryInter (Iterator **i, int n) | |
| Initialize with n iterators in i. | |
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. | |
Protected Attributes | |
| Iterator ** | is |
| Array of iterators. | |
| int | n |
| Number of iterators. | |
Constructor & Destructor Documentation
| Gecode::Iter::Ranges::Virt::NaryInter::NaryInter | ( | void | ) | [inline] |
| Gecode::Iter::Ranges::Virt::NaryInter::NaryInter | ( | Iterator ** | i, | |
| int | n | |||
| ) | [inline] |
Member Function Documentation
| int Gecode::Iter::Ranges::Virt::NaryInter::min | ( | void | ) | const [inline, virtual] |
Return smallest value of range.
Reimplemented from Gecode::Iter::Ranges::MinMax.
Definition at line 230 of file virtual-ranges-inter.icc.
| int Gecode::Iter::Ranges::Virt::NaryInter::max | ( | void | ) | const [inline, virtual] |
Return largest value of range.
Reimplemented from Gecode::Iter::Ranges::MinMax.
Definition at line 233 of file virtual-ranges-inter.icc.
| unsigned int Gecode::Iter::Ranges::Virt::NaryInter::width | ( | void | ) | const [inline, virtual] |
Return width of range (distance between minimum and maximum).
Reimplemented from Gecode::Iter::Ranges::MinMax.
Definition at line 236 of file virtual-ranges-inter.icc.
| void Gecode::Iter::Ranges::Virt::NaryInter::operator++ | ( | void | ) | [inline, virtual] |
Move iterator to next range (if possible).
Implements Gecode::Iter::Ranges::Virt::Iterator.
Definition at line 181 of file virtual-ranges-inter.icc.
| bool Gecode::Iter::Ranges::Virt::NaryInter::operator() | ( | void | ) | [inline, virtual] |
Test whether iterator is still at a range or done.
Implements Gecode::Iter::Ranges::Virt::Iterator.
Definition at line 227 of file virtual-ranges-inter.icc.
Member Data Documentation
Iterator** Gecode::Iter::Ranges::Virt::NaryInter::is [protected] |
int Gecode::Iter::Ranges::Virt::NaryInter::n [protected] |
The documentation for this class was generated from the following file:
- gecode/iter/virtual-ranges-inter.icc (Revision: 4973)
