Range iterator for pointwise offset (by some constant). More...
#include <gecode/iter/ranges-offset.hpp>
Protected Attributes | |
| I | i |
| Input range. | |
| int | c |
| Offset for ranges. | |
Constructors and initialization | |
| Offset (void) | |
| Default constructor. | |
| Offset (I &i, int c) | |
| Initialize with ranges from i and offset c. | |
| void | init (I &i, int c) |
| Initialize with ranges from i and offset c. | |
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). | |
Detailed Description
class Gecode::Iter::Ranges::Offset< I >
Range iterator for pointwise offset (by some constant).
Definition at line 42 of file ranges-offset.hpp.
Constructor & Destructor Documentation
◆ Offset() [1/2]
|
inline |
Default constructor.
Definition at line 81 of file ranges-offset.hpp.
◆ Offset() [2/2]
|
inline |
Initialize with ranges from i and offset c.
Definition at line 91 of file ranges-offset.hpp.
Member Function Documentation
◆ init()
|
inline |
Initialize with ranges from i and offset c.
Definition at line 85 of file ranges-offset.hpp.
◆ operator()()
|
inline |
Test whether iterator is still at a range or done.
Definition at line 100 of file ranges-offset.hpp.
◆ operator++()
|
inline |
Move iterator to next range (if possible).
Definition at line 95 of file ranges-offset.hpp.
◆ min()
|
inline |
Return smallest value of range.
Definition at line 106 of file ranges-offset.hpp.
◆ max()
|
inline |
Return largest value of range.
Definition at line 111 of file ranges-offset.hpp.
◆ width()
|
inline |
Return width of range (distance between minimum and maximum).
Definition at line 116 of file ranges-offset.hpp.
Member Data Documentation
◆ i
|
protected |
Input range.
Definition at line 45 of file ranges-offset.hpp.
◆ c
|
protected |
Offset for ranges.
Definition at line 47 of file ranges-offset.hpp.
The documentation for this class was generated from the following file:
- gecode/iter/ranges-offset.hpp
