Gecode::Iter::Values::ToRanges< I > Class Template Reference
[Value iterators]
Inherits Gecode::Iter::Ranges::MinMax.
Inherited by Gecode::Set::GlbRanges< CpltSet::CpltSetVarImp * >, Gecode::Set::LubRanges< CpltSet::CpltSetVarImp * >, Gecode::Set::UnknownRanges< CpltSet::CpltSetVarImp * >, and Test::Set::CountableSetRanges.
Detailed Description
template<class I>
class Gecode::Iter::Values::ToRanges< I >
Range iterator from value iterator.
The iterator only requires that the value iterator iterates values in increasing order. Duplicates in the iterated value sequence are okay.
Definition at line 50 of file values-ranges.icc.
Constructors and initialization | |
ToRanges (void) | |
Default constructor. | |
ToRanges (I &i) | |
Initialize with value iterator i. | |
void | init (I &i) |
Initialize with value iterator i. | |
Iteration control | |
void | operator++ (void) |
Move iterator to next range (if possible). | |
Protected Attributes | |
I | i |
Value iterator used. |
Constructor & Destructor Documentation
template<class I>
Gecode::Iter::Values::ToRanges< I >::ToRanges | ( | void | ) | [inline] |
template<class I>
Gecode::Iter::Values::ToRanges< I >::ToRanges | ( | I & | i | ) | [inline] |
Member Function Documentation
template<class I>
void Gecode::Iter::Values::ToRanges< I >::init | ( | I & | i | ) | [inline] |
template<class I>
void Gecode::Iter::Values::ToRanges< I >::operator++ | ( | void | ) | [inline] |
Member Data Documentation
template<class I>
I Gecode::Iter::Values::ToRanges< I >::i [protected] |
The documentation for this class was generated from the following file:
- gecode/iter/values-ranges.icc (Revision: 4973)