#include <libecc/bitset.h>
Inheritance diagram for libecc::bitset_invertible< n, inverted >:
Public Member Functions | |
void | base2_print_on (std::ostream &os) const |
Print bitset base 2. | |
bitset_digit_t | digit (unsigned int d) const |
Access digit number d. |
When dealing with expressions, short bitsets are assumed to have leading zeros. This class however can represent an 'inverted' bitset, meaning that it has an infinite number of leading ones.
The use of this class should be restricted to (optimized out) temporaries in expressions like a = ~b;
or a |= b & ~c
. The user should not use this class directly.
n | The number of bits in the bitset. |
inverted | True when each internal bit has the opposite meaning. |
|
Print bitset base 2. For debugging purposes. For example (assuming you are using libcwd):
|
|
Access digit number d.
|