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.Requires
#include "gecode/iter.hh"
Definition at line 77 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
|
|
Default constructor.
Definition at line 199 of file virtual-ranges-inter.icc. |
|
||||||||||||
|
Initialize with n iterators in i.
Definition at line 202 of file virtual-ranges-inter.icc. |
Member Function Documentation
|
|
Return smallest value of range.
Reimplemented from Gecode::Iter::Ranges::MinMax. Definition at line 216 of file virtual-ranges-inter.icc. |
|
|
Return largest value of range.
Reimplemented from Gecode::Iter::Ranges::MinMax. Definition at line 219 of file virtual-ranges-inter.icc. |
|
|
Return width of range (distance between minimum and maximum).
Reimplemented from Gecode::Iter::Ranges::MinMax. Definition at line 222 of file virtual-ranges-inter.icc. |
|
|
Move iterator to next range (if possible).
Implements Gecode::Iter::Ranges::Virt::Iterator. Definition at line 167 of file virtual-ranges-inter.icc. |
|
|
Test whether iterator is still at a range or done.
Implements Gecode::Iter::Ranges::Virt::Iterator. Definition at line 213 of file virtual-ranges-inter.icc. |
Member Data Documentation
|
|
Array of iterators.
Definition at line 82 of file virtual-ranges-inter.icc. |
|
|
Number of iterators.
Definition at line 84 of file virtual-ranges-inter.icc. |
The documentation for this class was generated from the following file:
- gecode/iter/virtual-ranges-inter.icc (Revision: 3515)
