Gecode::Iter::Values::Array Class Reference
[Value iterators]
List of all members.
Detailed Description
Value iterator for array of integers
Allows to iterate the integers as defined by an array. The integers can be iterated several times provided the iterator is reset by the reset member function.
Definition at line 49 of file values-array.icc.
|
Constructors and initialization |
| Array (void) |
| Default constructor.
|
| Array (int *v, int n) |
| Initialize with n values from v.
|
void | init (int *v, int n) |
| Initialize with n ranges from v.
|
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).
|
void | reset (void) |
| Reset iterator to start from beginning.
|
Value access |
int | val (void) const |
| Return current value.
|
Protected Attributes |
int * | v |
| Array for values.
|
int | c |
| Current value.
|
int | n |
| Number of ranges in array.
|
Constructor & Destructor Documentation
Gecode::Iter::Values::Array::Array |
( |
void |
|
) |
[inline] |
Gecode::Iter::Values::Array::Array |
( |
int * |
v, |
|
|
int |
n | |
|
) |
| | [inline] |
Member Function Documentation
void Gecode::Iter::Values::Array::init |
( |
int * |
v, |
|
|
int |
n | |
|
) |
| | [inline] |
bool Gecode::Iter::Values::Array::operator() |
( |
void |
|
) |
const [inline] |
void Gecode::Iter::Values::Array::operator++ |
( |
void |
|
) |
[inline] |
Move iterator to next value (if possible).
Definition at line 99 of file values-array.icc.
void Gecode::Iter::Values::Array::reset |
( |
void |
|
) |
[inline] |
int Gecode::Iter::Values::Array::val |
( |
void |
|
) |
const [inline] |
Member Data Documentation
The documentation for this class was generated from the following file: