Gecode::Iter::Ranges::Array Class Reference
[Range iterators]
List of all members.
Detailed Description
Range iterator for array of ranges
Allows to iterate the ranges as defined by an array. The ranges can be iterated several times provided the iterator is reset by the reset member function.
Definition at line 49 of file ranges-array.icc.
|
Constructors and initialization |
| Array (void) |
| Default constructor.
|
| Array (Range *r, int n) |
| Initialize with n ranges from r.
|
void | init (Range *r, int n) |
| Initialize with n ranges from r.
|
Iteration control |
bool | operator() (void) const |
| Test whether iterator is still at a range or done.
|
void | operator++ (void) |
| Move iterator to next range (if possible).
|
void | reset (void) |
| Reset iterator to start from beginning.
|
Range access |
int | min (void) const |
| Return smallest value of range.
|
int | max (void) const |
| Return largest value of range.
|
unsigned int | width (void) const |
| Return width of range (distance between minimum and maximum).
|
Protected Attributes |
Range * | r |
| Array for ranges.
|
int | c |
| Current range.
|
int | n |
| Number of ranges in array.
|
Classes |
class | Range |
| Ranges for array More...
|
Constructor & Destructor Documentation
Gecode::Iter::Ranges::Array::Array |
( |
void |
|
) |
[inline] |
Gecode::Iter::Ranges::Array::Array |
( |
Range * |
r, |
|
|
int |
n | |
|
) |
| | [inline] |
Member Function Documentation
void Gecode::Iter::Ranges::Array::init |
( |
Range * |
r, |
|
|
int |
n | |
|
) |
| | [inline] |
bool Gecode::Iter::Ranges::Array::operator() |
( |
void |
|
) |
const [inline] |
void Gecode::Iter::Ranges::Array::operator++ |
( |
void |
|
) |
[inline] |
void Gecode::Iter::Ranges::Array::reset |
( |
void |
|
) |
[inline] |
int Gecode::Iter::Ranges::Array::min |
( |
void |
|
) |
const [inline] |
int Gecode::Iter::Ranges::Array::max |
( |
void |
|
) |
const [inline] |
unsigned int Gecode::Iter::Ranges::Array::width |
( |
void |
|
) |
const [inline] |
Return width of range (distance between minimum and maximum).
Definition at line 131 of file ranges-array.icc.
Member Data Documentation
The documentation for this class was generated from the following file: