Gecode::Iter::Values::Array Class Reference
[Value iterators]
Value iterator for array of integers
More...
#include <values-array.hpp>
List of all members.
|
Protected Attributes |
| int * | v |
| | Array for values.
|
| int | c |
| | Current value.
|
| int | n |
| | Number of ranges in array.
|
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.
|
Detailed Description
Value iterator for array of integers
Allows to iterate the integers as defined by an array where the values in the array must be sorted in increasing order. The integers can be iterated several times provided the iterator is reset by the reset member function.
Definition at line 50 of file values-array.hpp.
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] |
| 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: