Gecode::Iter::Ranges::Offset< I > Class Template Reference
[Range iterators]
Inherited by Gecode::Int::ViewRanges< OffsetView >.
Detailed Description
template<class I>
class Gecode::Iter::Ranges::Offset< I >
Range iterator for pointwise offset (by some constant).
Requires
#include "gecode/iter.hh"
Definition at line 31 of file ranges-offset.icc.
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). | |
Protected Attributes | |
| I | i |
| Input range. | |
| int | c |
| Offset for ranges. | |
Constructor & Destructor Documentation
template<class I>
| Gecode::Iter::Ranges::Offset< I >::Offset | ( | void | ) | [inline] |
template<class I>
| Gecode::Iter::Ranges::Offset< I >::Offset | ( | I & | i, | |
| int | c | |||
| ) | [inline] |
Member Function Documentation
template<class I>
| void Gecode::Iter::Ranges::Offset< I >::init | ( | I & | i, | |
| int | c | |||
| ) | [inline] |
template<class I>
| bool Gecode::Iter::Ranges::Offset< I >::operator() | ( | void | ) | const [inline] |
template<class I>
| void Gecode::Iter::Ranges::Offset< I >::operator++ | ( | void | ) | [inline] |
template<class I>
| int Gecode::Iter::Ranges::Offset< I >::min | ( | void | ) | const [inline] |
template<class I>
| int Gecode::Iter::Ranges::Offset< I >::max | ( | void | ) | const [inline] |
template<class I>
| unsigned int Gecode::Iter::Ranges::Offset< I >::width | ( | void | ) | const [inline] |
Return width of range (distance between minimum and maximum).
Definition at line 105 of file ranges-offset.icc.
Member Data Documentation
template<class I>
I Gecode::Iter::Ranges::Offset< I >::i [protected] |
template<class I>
int Gecode::Iter::Ranges::Offset< I >::c [protected] |
The documentation for this class was generated from the following file:
- gecode/iter/ranges-offset.icc (Revision: 3515)
