#include <libecc/bitset.h>
Static Public Attributes | |
static unsigned int const | number_of_bits |
The number of bits in the bitset. | |
static unsigned int const | digits |
The minimum number of digits needed to store n bits. | |
static bitset_digit_t const | valid_bits |
A mask marking the valid bits in the most significant digit. | |
static 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).
unsigned int const libecc::bitset_base< n >::number_of_bits [static] |
The number of bits in the bitset.
This constant is simply equal to n.
unsigned int const libecc::bitset_base< n >::digits [static] |
The minimum number of digits needed to store n bits.
bitset_digit_t const libecc::bitset_base< n >::valid_bits [static] |
A mask marking the valid bits in the most significant digit.
bool const libecc::bitset_base< n >::has_excess_bits [static] |
True when not all bits in the most significant digit are valid.
bitset_digit_t libecc::bitset_base< n >::vector[digits] [protected] |
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.
Referenced by libecc::bitset< n >::any(), libecc::bitset< n >::bitset(), libecc::bitset< n >::clear(), libecc::bitset< n >::flip(), libecc::bitset< n >::odd(), libecc::bitset< n >::operator<<=(), libecc::operator==(), libecc::bitset< n >::operator>>=(), libecc::bitset< n >::reset(), libecc::bitset< n >::set(), libecc::bitset< n >::setall(), libecc::bitset< n >::shift_op(), libecc::bitset< n >::test(), and libecc::bitset< n >::xor_with_zero_padded().