Date item for bitsets.
More...
#include <bitset-base.hpp>
|
| void | init (bool setbits=false) |
| | Initialize with all bits set if setbits. More...
|
| |
| bool | operator() (unsigned int i=0U) const |
| | Test wether any bit with position greater or equal to i is set. More...
|
| |
| bool | get (unsigned int i) const |
| | Access value at bit i. More...
|
| |
| void | set (unsigned int i) |
| | Set bit i. More...
|
| |
| void | clear (unsigned int i) |
| | Clear bit i. More...
|
| |
| unsigned int | next (unsigned int i=0U) const |
| | Return next set bit with position greater or equal to i (there must be a bit) More...
|
| |
| bool | all (void) const |
| | Whether all bits are set. More...
|
| |
| bool | all (unsigned int i) const |
| | Whether all bits from bit 0 to bit i are set. More...
|
| |
| bool | none (void) const |
| | Whether no bits are set. More...
|
| |
| bool | none (unsigned int i) const |
| | Whether no bits from bit 0 to bit i are set. More...
|
| |
| void | a (BitSetData a) |
| | Perform "and" with a. More...
|
| |
| void | a (BitSetData a, unsigned int i) |
| | Perform "and" with a for bits 0 to i. More...
|
| |
| void | o (BitSetData a) |
| | Perform "or" with a. More...
|
| |
| void | o (BitSetData a, unsigned int i) |
| | Perform "or" with a for bits 0 to i. More...
|
| |
|
| typedef unsigned long int | Base |
| | Basetype for bits. More...
|
| |
|
| static const unsigned int | bpb |
| | Bits per base. More...
|
| |
Date item for bitsets.
Definition at line 65 of file bitset-base.hpp.
| void Gecode::Support::BitSetData::init |
( |
bool |
setbits = false | ) |
|
|
inline |
| unsigned int Gecode::Support::BitSetData::data |
( |
unsigned int |
s | ) |
|
|
inlinestatic |
| bool Gecode::Support::BitSetData::operator() |
( |
unsigned int |
i = 0U | ) |
const |
|
inline |
Test wether any bit with position greater or equal to i is set.
Definition at line 242 of file bitset-base.hpp.
| bool Gecode::Support::BitSetData::get |
( |
unsigned int |
i | ) |
const |
|
inline |
| void Gecode::Support::BitSetData::set |
( |
unsigned int |
i | ) |
|
|
inline |
| void Gecode::Support::BitSetData::clear |
( |
unsigned int |
i | ) |
|
|
inline |
| unsigned int Gecode::Support::BitSetData::next |
( |
unsigned int |
i = 0U | ) |
const |
|
inline |
Return next set bit with position greater or equal to i (there must be a bit)
Definition at line 258 of file bitset-base.hpp.
| bool Gecode::Support::BitSetData::all |
( |
void |
| ) |
const |
|
inline |
| bool Gecode::Support::BitSetData::all |
( |
unsigned int |
i | ) |
const |
|
inline |
Whether all bits from bit 0 to bit i are set.
Definition at line 286 of file bitset-base.hpp.
| bool Gecode::Support::BitSetData::none |
( |
void |
| ) |
const |
|
inline |
| bool Gecode::Support::BitSetData::none |
( |
unsigned int |
i | ) |
const |
|
inline |
Whether no bits from bit 0 to bit i are set.
Definition at line 295 of file bitset-base.hpp.
| void Gecode::Support::BitSetData::a |
( |
BitSetData |
a | ) |
|
|
inline |
| void Gecode::Support::BitSetData::a |
( |
BitSetData |
a, |
|
|
unsigned int |
i |
|
) |
| |
|
inline |
| void Gecode::Support::BitSetData::o |
( |
BitSetData |
a | ) |
|
|
inline |
| void Gecode::Support::BitSetData::o |
( |
BitSetData |
a, |
|
|
unsigned int |
i |
|
) |
| |
|
inline |
| Base Gecode::Support::BitSetData::bits |
|
protected |
| const unsigned int Gecode::Support::BitSetData::bpb |
|
staticprotected |
Initial value:=
static_cast<unsigned int>(CHAR_BIT *
sizeof(
Base))
Bits per base.
Definition at line 78 of file bitset-base.hpp.
The documentation for this class was generated from the following file: