Value iterator for values in a bitset. More...
#include <gecode/iter/values-bitset.hpp>
Protected Member Functions | |
| void | move (void) |
| Move to next set bit. | |
Protected Attributes | |
| const BS & | bs |
| Bitset. | |
| unsigned int | cur |
| Current value. | |
| unsigned int | limit |
| Limit value. | |
Constructors and initialization | |
| BitSet (const BS &bs) | |
| Initialize with bitset bs. | |
| BitSet (const BS &bs, int n, int m) | |
| Initialize with bitset bs and start n and stop m. | |
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
class Gecode::Iter::Values::BitSet< BS >
Value iterator for values in a bitset.
Definition at line 42 of file values-bitset.hpp.
Constructor & Destructor Documentation
◆ BitSet() [1/2]
|
inline |
Initialize with bitset bs.
Definition at line 79 of file values-bitset.hpp.
◆ BitSet() [2/2]
|
inline |
Initialize with bitset bs and start n and stop m.
Definition at line 85 of file values-bitset.hpp.
Member Function Documentation
◆ move()
|
protected |
Move to next set bit.
◆ operator()()
|
inline |
Test whether iterator is still at a value or done.
Definition at line 98 of file values-bitset.hpp.
◆ operator++()
|
inline |
Move iterator to next value (if possible).
Definition at line 93 of file values-bitset.hpp.
◆ val()
|
inline |
Return current value.
Definition at line 104 of file values-bitset.hpp.
Member Data Documentation
◆ bs
|
protected |
Bitset.
Definition at line 45 of file values-bitset.hpp.
◆ cur
|
protected |
Current value.
Definition at line 47 of file values-bitset.hpp.
◆ limit
|
protected |
Limit value.
Definition at line 49 of file values-bitset.hpp.
The documentation for this class was generated from the following file:
- gecode/iter/values-bitset.hpp
