Generated on Mon Aug 25 11:35:52 2008 for Gecode by doxygen 1.5.6

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.

List of all members.


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
 Value iterator used.

Constructor & Destructor Documentation

template<class I>
Gecode::Iter::Values::ToRanges< I >::ToRanges ( void   )  [inline]

Default constructor.

Definition at line 74 of file values-ranges.icc.

template<class I>
Gecode::Iter::Values::ToRanges< I >::ToRanges ( I &  i  )  [inline]

Initialize with value iterator i.

Definition at line 91 of file values-ranges.icc.


Member Function Documentation

template<class I>
void Gecode::Iter::Values::ToRanges< I >::init ( I &  i  )  [inline]

Initialize with value iterator i.

Definition at line 98 of file values-ranges.icc.

template<class I>
void Gecode::Iter::Values::ToRanges< I >::operator++ ( void   )  [inline]

Move iterator to next range (if possible).

Definition at line 78 of file values-ranges.icc.


Member Data Documentation

template<class I>
I Gecode::Iter::Values::ToRanges< I >::i [protected]

Value iterator used.

Definition at line 53 of file values-ranges.icc.


The documentation for this class was generated from the following file: