Go to the documentation of this file.
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];
static int clearBit(unsigned int index, int word)
ProxyBitSet(const int *data, size_t bits)
MutableProxyBitSet(int *data, size_t bits)
static bool extractBit(unsigned int index, int word)
static int setBit(unsigned int index, int word)
static constexpr size_t BitsInDataWord
bool get(size_t index) const
const size_t data_word_count_
const size_t data_word_count_
bool get(size_t index) const
hebi_cpp_api_ros
Author(s): Chris Bollinger
, Matthew Tesch
autogenerated on Fri Aug 2 2024 08:35:18