Gecode::Iter::Ranges::ToValues< I > Class Template Reference
[Value iterators]
List of all members.Detailed Description
template<class I>
class Gecode::Iter::Ranges::ToValues< I >
Value iterator from range iterator.
Requires
#include "gecode/iter.hh"
Definition at line 31 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
|
Default constructor.
Definition at line 71 of file ranges-values.icc. |
|
Initialize with values from range iterator i.
Definition at line 85 of file ranges-values.icc. |
Member Function Documentation
|
Initialize iterator.
Definition at line 75 of file ranges-values.icc. |
|
Initialize with values from range iterator i.
Definition at line 92 of file ranges-values.icc. |
|
Test whether iterator is still at a value or done.
Definition at line 100 of file ranges-values.icc. |
|
Move iterator to next value (if possible).
Definition at line 106 of file ranges-values.icc. |
|
Return current value.
Definition at line 118 of file ranges-values.icc. |
Member Data Documentation
|
Range iterator used.
Definition at line 34 of file ranges-values.icc. |
|
Current value.
Definition at line 36 of file ranges-values.icc. |
|
End of current range.
Definition at line 38 of file ranges-values.icc. |
The documentation for this class was generated from the following file:
- gecode/iter/ranges-values.icc (Revision: 3515)