Gecode::Int::ViewRanges< View > Class Template Reference
[Programming integer actors]
List of all members.Detailed Description
template<class View>
class Gecode::Int::ViewRanges< View >
Range iterator for integer views.
This class provides (by specialization) a range iterator for all integer views.
Note that this template class serves only as a specification of the interface of the various specializations.
Definition at line 46 of file view.icc.
Constructors and initialization | |
ViewRanges (void) | |
Default constructor. | |
ViewRanges (const View &x) | |
Initialize with ranges for view x. | |
void | init (const View &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). |
Constructor & Destructor Documentation
|
Default constructor.
|
|
Initialize with ranges for view x.
|
Member Function Documentation
|
Initialize with ranges for view x.
|
|
Test whether iterator is still at a range or done.
|
|
Move iterator to next range (if possible).
|
|
Return smallest value of range.
|
|
Return largest value of range.
|
|
Return width of range (distance between minimum and maximum).
|
The documentation for this class was generated from the following file:
- gecode/int/view.icc (Revision: 3559)