Generated on Thu Mar 22 10:39:59 2012 for Gecode by doxygen 1.6.3

Gecode::Iter::Values::Unique< I > Class Template Reference
[Value iterators]

Remove duplicate values from from value iterator. More...

#include <values-unique.hpp>

List of all members.

Protected Attributes

i
 Value iterator used.

Constructors and initialization



 Unique (void)
 Default constructor.
 Unique (I &i)
 Initialize with value iterator i.
void init (I &i)
 Initialize with value iterator i.

Iteration control



bool operator() (void) const
 Test whether iterator is still at a value or done.
void operator++ (void)
 Move iterator to next unique value (if possible).

Value access



int val (void) const
 Return current value.

Detailed Description

template<class I>
class Gecode::Iter::Values::Unique< I >

Remove duplicate values from from value iterator.

The iterator only requires that the value iterator iterates values in increasing order. Duplicates in the iterated value sequence are removed.

Definition at line 50 of file values-unique.hpp.


Constructor & Destructor Documentation

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

Default constructor.

Definition at line 82 of file values-unique.hpp.

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

Initialize with value iterator i.

Definition at line 86 of file values-unique.hpp.


Member Function Documentation

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

Initialize with value iterator i.

Definition at line 91 of file values-unique.hpp.

template<class I >
bool Gecode::Iter::Values::Unique< I >::operator() ( void   )  const [inline]

Test whether iterator is still at a value or done.

Definition at line 105 of file values-unique.hpp.

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

Move iterator to next unique value (if possible).

Definition at line 97 of file values-unique.hpp.

template<class I >
int Gecode::Iter::Values::Unique< I >::val ( void   )  const [inline]

Return current value.

Definition at line 111 of file values-unique.hpp.


Member Data Documentation

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

Value iterator used.

Definition at line 53 of file values-unique.hpp.


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