Gecode::Iter::Values::Map< I, M, strict > Class Template Reference
[Value iterators]
Detailed Description
template<class I, class M, bool strict = false>
class Gecode::Iter::Values::Map< I, M, strict >
Value iterator for mapping values of a value iterator.
If strict is true, the values obtained by mapping must be strictly increasing (that is, no duplicates).
Definition at line 49 of file values-map.icc.
Constructors and initialization | |
Map (void) | |
Default constructor. | |
Map (I &i) | |
Initialize with values from i. | |
Map (I &i, const M &m) | |
Initialize with values from i and map m. | |
void | init (I &i) |
Initialize with values from i. | |
void | init (I &i, const M &m) |
Initialize with values from i and map m. | |
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. |
Constructor & Destructor Documentation
template<class I, class M, bool strict>
Gecode::Iter::Values::Map< I, M, strict >::Map | ( | void | ) | [inline] |
template<class I, class M, bool strict>
Gecode::Iter::Values::Map< I, M, strict >::Map | ( | I & | i | ) | [inline] |
template<class I, class M, bool strict>
Gecode::Iter::Values::Map< I, M, strict >::Map | ( | I & | i, | |
const M & | m | |||
) | [inline] |
Member Function Documentation
template<class I, class M, bool strict>
void Gecode::Iter::Values::Map< I, M, strict >::init | ( | I & | i | ) | [inline] |
template<class I, class M, bool strict>
void Gecode::Iter::Values::Map< I, M, strict >::init | ( | I & | i, | |
const M & | m | |||
) | [inline] |
template<class I, class M, bool strict>
bool Gecode::Iter::Values::Map< I, M, strict >::operator() | ( | void | ) | const [inline] |
template<class I, class M, bool strict>
void Gecode::Iter::Values::Map< I, M, strict >::operator++ | ( | void | ) | [inline] |
template<class I, class M, bool strict>
int Gecode::Iter::Values::Map< I, M, strict >::val | ( | void | ) | const [inline] |
The documentation for this class was generated from the following file:
- gecode/iter/values-map.icc (Revision: 7286)