
Date item for bitsets. More...
#include <bitset-base.hpp>
Public Member Functions | |
| void | init (bool set=false) |
| Initialize with all bits set if set. 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... | |
Static Public Member Functions | |
| static unsigned int | data (unsigned int s) |
| Get number of data elements for s bits. More... | |
Protected Types | |
| typedef unsigned long int | Base |
| Basetype for bits. More... | |
Protected Attributes | |
| Base | bits |
| The bits. More... | |
Static Protected Attributes | |
| static const unsigned int | bpb |
| Bits per base. More... | |
Date item for bitsets.
Definition at line 65 of file bitset-base.hpp.
|
protected |
Basetype for bits.
Definition at line 73 of file bitset-base.hpp.
|
inline |
Initialize with all bits set if set.
Definition at line 169 of file bitset-base.hpp.
|
inlinestatic |
Get number of data elements for s bits.
Definition at line 173 of file bitset-base.hpp.
|
inline |
Test wether any bit with position greater or equal to i is set.
Definition at line 177 of file bitset-base.hpp.
|
inline |
Access value at bit i.
Definition at line 181 of file bitset-base.hpp.
|
inline |
Set bit i.
Definition at line 185 of file bitset-base.hpp.
|
inline |
Clear bit i.
Definition at line 189 of file bitset-base.hpp.
|
inline |
Return next set bit with position greater or equal to i (there must be a bit)
Definition at line 193 of file bitset-base.hpp.
|
inline |
Whether all bits are set.
Definition at line 217 of file bitset-base.hpp.
|
inline |
Whether all bits from bit 0 to bit i are set.
Definition at line 221 of file bitset-base.hpp.
|
inline |
Whether no bits are set.
Definition at line 226 of file bitset-base.hpp.
|
inline |
Whether no bits from bit 0 to bit i are set.
Definition at line 230 of file bitset-base.hpp.
|
protected |
The bits.
Definition at line 76 of file bitset-base.hpp.
|
staticprotected |