Range iterator for offset integer views More...
#include <offset.hpp>
Constructors and initialization | |
ViewRanges (void) | |
Default constructor. | |
ViewRanges (const OffsetView &x) | |
Initialize with ranges for view x. | |
void | init (const OffsetView &x) |
Initialize with ranges for view x. |
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) |
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) |
Additional Inherited Members | |
Offset (void) | |
Default constructor. | |
void | init (ViewRanges< IntView > &i, int c) |
Initialize with ranges from i and offset c. | |
bool | operator() (void) const |
Test whether iterator is still at a range or done. | |
void | operator++ (void) |
Move iterator to next range (if possible) | |
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 inherited from Gecode::Iter::Ranges::Offset< ViewRanges< IntView > > | |
ViewRanges< IntView > | i |
Input range. | |
int | c |
Offset for ranges. |
Range iterator for offset integer views
Definition at line 284 of file offset.hpp.
|
inline |
Default constructor.
Definition at line 299 of file offset.hpp.
|
inline |
Initialize with ranges for view x.
Definition at line 302 of file offset.hpp.
|
inline |
Initialize with ranges for view x.
Definition at line 308 of file offset.hpp.
bool Gecode::Int::ViewRanges< OffsetView >::operator() | ( | void | ) | const |
Test whether iterator is still at a range or done.
void Gecode::Int::ViewRanges< OffsetView >::operator++ | ( | void | ) |
Move iterator to next range (if possible)
int Gecode::Int::ViewRanges< OffsetView >::min | ( | void | ) | const |
Return smallest value of range.
int Gecode::Int::ViewRanges< OffsetView >::max | ( | void | ) | const |
Return largest value of range.
unsigned int Gecode::Int::ViewRanges< OffsetView >::width | ( | void | ) | const |
Return width of range (distance between minimum and maximum)