- Gecode
- Iter
- Values
- BitSetOffset

Value iterator for values in an offset bitset. More...
#include <values-bitsetoffset.hpp>
Protected Member Functions | |
| void | move (void) |
| Move to next set bit. More... | |
Protected Attributes | |
| const BS & | bs |
| Bitset. More... | |
| int | cur |
| Current value. More... | |
| int | limit |
| Limit value. More... | |
Constructors and initialization | |
| BitSetOffset (const BS &bs) | |
| Initialize with bitset bs. More... | |
| BitSetOffset (const BS &bs, int n, int m) | |
| Initialize with bitset bs and start n and stop m. More... | |
Iteration control | |
| bool | operator() (void) const |
| Test whether iterator is still at a value or done. More... | |
| void | operator++ (void) |
| Move iterator to next value (if possible) More... | |
Value access | |
| int | val (void) const |
| Return current value. More... | |
Value iterator for values in an offset bitset.
Definition at line 45 of file values-bitsetoffset.hpp.
|
inline |
Initialize with bitset bs.
Definition at line 82 of file values-bitsetoffset.hpp.
|
inline |
Initialize with bitset bs and start n and stop m.
Definition at line 88 of file values-bitsetoffset.hpp.
|
protected |
Move to next set bit.
|
inline |
Test whether iterator is still at a value or done.
Definition at line 101 of file values-bitsetoffset.hpp.
|
inline |
Move iterator to next value (if possible)
Definition at line 96 of file values-bitsetoffset.hpp.
|
inline |
Return current value.
Definition at line 107 of file values-bitsetoffset.hpp.
|
protected |
Bitset.
Definition at line 48 of file values-bitsetoffset.hpp.
|
protected |
Current value.
Definition at line 50 of file values-bitsetoffset.hpp.
|
protected |
Limit value.
Definition at line 52 of file values-bitsetoffset.hpp.