#include <libecc/bitset.h>
Inheritance diagram for libecc::bitset_base< n >:
Static Public Attributes | |
unsigned int const | number_of_bits |
The number of bits in the bitset. | |
unsigned int const | digit_bits |
The number of bits in a single digit. See also bitset_digit_t. | |
unsigned int const | digits |
The minimum number of digits needed to store n bits. | |
bitset_digit_t const | valid_bits |
A mask marking the valid bits in the most significant digit. | |
bool const | has_excess_bits |
True when not all bits in the most significant digit are valid. | |
Protected Attributes | |
bitset_digit_t | vector [digits] |
The actual bits, stored as an array of digits number of "digits" of type libecc::bitset_digit_t. |
This class is for internal use only. It contains the actual data, an array of bitset_digit_t, the meaning of which is determined by the derived classes; direct access of the data is therefore useless and prohibited (vector is protected).
|
The number of bits in a single digit. See also bitset_digit_t.
|
|
The minimum number of digits needed to store n bits.
|
|
True when not all bits in the most significant digit are valid.
|
|
The number of bits in the bitset. This constant is simply equal to n. |
|
A mask marking the valid bits in the most significant digit.
|
|
The actual bits, stored as an array of digits number of "digits" of type libecc::bitset_digit_t. The first digit is the least significant digit: printing is done from high index to low index. The bits in the array can represent the actual bits or the inverted bits of the bitset, depending on the type of the derived class. |