Gecode::Iter::Ranges::ToValues< I > Class Template Reference
[Value iterators]
Inherited by Gecode::Int::ViewValues< View >, Gecode::IntSetValues, Gecode::IntVarValues, and Gecode::Int::ViewValues< Gecode::Int::IntView >.
Detailed Description
template<class I>
class Gecode::Iter::Ranges::ToValues< I >
Value iterator from range iterator.
Definition at line 46 of file ranges-values.icc.
Constructors and initialization | |
| ToValues (void) | |
| Default constructor. | |
| ToValues (I &i) | |
| Initialize with values from range iterator i. | |
| void | init (I &i) |
| Initialize with values from range 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 value (if possible). | |
Value access | |
| int | val (void) const |
| Return current value. | |
Protected Member Functions | |
| void | start (void) |
| Initialize iterator. | |
Protected Attributes | |
| I | i |
| Range iterator used. | |
| int | cur |
| Current value. | |
| int | max |
| End of current range. | |
Constructor & Destructor Documentation
template<class I>
| Gecode::Iter::Ranges::ToValues< I >::ToValues | ( | void | ) | [inline] |
template<class I>
| Gecode::Iter::Ranges::ToValues< I >::ToValues | ( | I & | i | ) | [inline] |
Member Function Documentation
template<class I>
| void Gecode::Iter::Ranges::ToValues< I >::start | ( | void | ) | [inline, protected] |
template<class I>
| void Gecode::Iter::Ranges::ToValues< I >::init | ( | I & | i | ) | [inline] |
template<class I>
| bool Gecode::Iter::Ranges::ToValues< I >::operator() | ( | void | ) | const [inline] |
Test whether iterator is still at a value or done.
Definition at line 115 of file ranges-values.icc.
template<class I>
| void Gecode::Iter::Ranges::ToValues< I >::operator++ | ( | void | ) | [inline] |
template<class I>
| int Gecode::Iter::Ranges::ToValues< I >::val | ( | void | ) | const [inline] |
Member Data Documentation
template<class I>
I Gecode::Iter::Ranges::ToValues< I >::i [protected] |
template<class I>
int Gecode::Iter::Ranges::ToValues< I >::cur [protected] |
template<class I>
int Gecode::Iter::Ranges::ToValues< I >::max [protected] |
The documentation for this class was generated from the following file:
- gecode/iter/ranges-values.icc (Revision: 4973)
