Gecode::Iter::Values::Singleton Class Reference
[Value iterators]
Value iterator for single value. More...
#include <values-singleton.hpp>
Protected Attributes | |
bool | done |
Whether the iterator is done. | |
int | v |
The single value. | |
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. |
Detailed Description
Value iterator for single value.
Definition at line 46 of file values-singleton.hpp.
Constructor & Destructor Documentation
Gecode::Iter::Values::Singleton::Singleton | ( | void | ) | [inline] |
Default constructor.
Definition at line 80 of file values-singleton.hpp.
Gecode::Iter::Values::Singleton::Singleton | ( | int | v | ) | [inline] |
Initialize with value v.
Definition at line 83 of file values-singleton.hpp.
Member Function Documentation
void Gecode::Iter::Values::Singleton::init | ( | int | v | ) | [inline] |
Initialize with value v.
Definition at line 87 of file values-singleton.hpp.
bool Gecode::Iter::Values::Singleton::operator() | ( | void | ) | const [inline] |
Test whether iterator is still at a value or done.
Definition at line 96 of file values-singleton.hpp.
void Gecode::Iter::Values::Singleton::operator++ | ( | void | ) | [inline] |
Move iterator to next value (if possible).
Definition at line 92 of file values-singleton.hpp.
int Gecode::Iter::Values::Singleton::val | ( | void | ) | const [inline] |
Return current value.
Definition at line 101 of file values-singleton.hpp.
Member Data Documentation
bool Gecode::Iter::Values::Singleton::done [protected] |
Whether the iterator is done.
Definition at line 49 of file values-singleton.hpp.
int Gecode::Iter::Values::Singleton::v [protected] |
The single value.
Definition at line 51 of file values-singleton.hpp.
The documentation for this class was generated from the following file:
- gecode/iter/values-singleton.hpp (Revision: 7989)