9 static inline bool extractBit(
unsigned int index,
int word) {
10 return static_cast<bool>((word >> index) & 1);
13 static inline int setBit(
unsigned int index,
int word) {
14 const auto val = 1 << index;
18 static inline int clearBit(
unsigned int index,
int word) {
19 const auto val = 1 << index;
28 bool get(
size_t index)
const {
30 const auto word =
data_[wordIdx];
35 void set(
size_t index) {
37 const auto word =
data_[wordIdx];
44 const auto word =
data_[wordIdx];
74 bool get(
size_t index)
const {
76 const auto word =
data_[wordIdx];
const size_t data_word_count_
ProxyBitSet(const int *data, size_t bits)
const size_t data_word_count_
static int setBit(unsigned int index, int word)
static constexpr size_t BitsInDataWord
static bool extractBit(unsigned int index, int word)
MutableProxyBitSet(int *data, size_t bits)
static int clearBit(unsigned int index, int word)