Gecode::Iter::Values::Unique< I > Class Template Reference
[Value iterators]
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.icc.
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. | |
Protected Attributes | |
I | i |
Value iterator used. |
Constructor & Destructor Documentation
template<class I>
Gecode::Iter::Values::Unique< I >::Unique | ( | void | ) | [inline] |
template<class I>
Gecode::Iter::Values::Unique< I >::Unique | ( | I & | i | ) | [inline] |
Member Function Documentation
template<class I>
void Gecode::Iter::Values::Unique< I >::init | ( | I & | i | ) | [inline] |
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.icc.
template<class I>
void Gecode::Iter::Values::Unique< I >::operator++ | ( | void | ) | [inline] |
template<class I>
int Gecode::Iter::Values::Unique< I >::val | ( | void | ) | const [inline] |
Member Data Documentation
template<class I>
I Gecode::Iter::Values::Unique< I >::i [protected] |
The documentation for this class was generated from the following file:
- gecode/iter/values-unique.icc (Revision: 4973)