Gecode::Iter::Values::Offset< I > Class Template Reference
[Value iterators]
Detailed Description
template<class I>
class Gecode::Iter::Values::Offset< I >
Value iterator for pointwise offset (by some constant).
Definition at line 46 of file values-offset.icc.
Constructors and initialization | |
Offset (void) | |
Default constructor. | |
Offset (I &i, int c) | |
Initialize with values from i and offset c. | |
void | init (I &i, int c) |
Initialize with values from i and offset c. | |
Iteration control | |
bool | operator() (void) const |
Test whether iterator is still at a value or done. | |
void | operator++ (void) |
Move iterator to next value (if possible). | |
Value access | |
int | val (void) const |
Return current value. | |
Protected Attributes | |
I | i |
Input iterator. | |
int | c |
Offset for ranges. |
Constructor & Destructor Documentation
template<class I>
Gecode::Iter::Values::Offset< I >::Offset | ( | void | ) | [inline] |
template<class I>
Gecode::Iter::Values::Offset< I >::Offset | ( | I & | i, | |
int | c | |||
) | [inline] |
Member Function Documentation
template<class I>
void Gecode::Iter::Values::Offset< I >::init | ( | I & | i, | |
int | c | |||
) | [inline] |
template<class I>
bool Gecode::Iter::Values::Offset< I >::operator() | ( | void | ) | const [inline] |
Test whether iterator is still at a value or done.
Definition at line 100 of file values-offset.icc.
template<class I>
void Gecode::Iter::Values::Offset< I >::operator++ | ( | void | ) | [inline] |
template<class I>
int Gecode::Iter::Values::Offset< I >::val | ( | void | ) | const [inline] |
Member Data Documentation
template<class I>
I Gecode::Iter::Values::Offset< I >::i [protected] |
template<class I>
int Gecode::Iter::Values::Offset< I >::c [protected] |
The documentation for this class was generated from the following file:
- gecode/iter/values-offset.icc (Revision: 4973)