Gecode::Iter::Values::Singleton Class Reference
[Value iterators]
List of all members.
Detailed Description
Value iterator for single value.
Definition at line 46 of file values-singleton.icc.
|
Constructors and initialization |
| Singleton (void) |
| Default constructor.
|
| Singleton (int v) |
| Initialize with value v.
|
void | init (int v) |
| Initialize with value 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).
|
Value access |
int | val (void) const |
| Return current value.
|
Protected Attributes |
bool | done |
| Whether the iterator is done.
|
int | v |
| The single value.
|
Constructor & Destructor Documentation
Gecode::Iter::Values::Singleton::Singleton |
( |
void |
|
) |
[inline] |
Gecode::Iter::Values::Singleton::Singleton |
( |
int |
v |
) |
[inline] |
Member Function Documentation
void Gecode::Iter::Values::Singleton::init |
( |
int |
v |
) |
[inline] |
bool Gecode::Iter::Values::Singleton::operator() |
( |
void |
|
) |
const [inline] |
void Gecode::Iter::Values::Singleton::operator++ |
( |
void |
|
) |
[inline] |
int Gecode::Iter::Values::Singleton::val |
( |
void |
|
) |
const [inline] |
Member Data Documentation
The documentation for this class was generated from the following file: