10 #include <type_traits>
20 template <
typename index_t =
size_t,
typename storage_t = std::
byte>
42 data_[bin_from_index(index)] |= mask_in_bin(index);
47 data_[bin_from_index(index)] &= ~mask_in_bin(index);
53 if (index < num_bits_) { result = ((data_[bin_from_index(index)] & mask_in_bin(index)) != 0); }
68 data_[i] &= other.data_[i];
75 data_[i] |= other.data_[i];
82 data_[i] ^= other.data_[i];
#define DEVICE
Definition: gpu_support.hpp:24
#define HOST
Definition: gpu_support.hpp:23
uint32_t index_type
Definition: index_type.hpp:9
Definition: dbscan.hpp:18
Definition: bitset.hpp:21
HOST DEVICE auto & set(index_type index)
Definition: bitset.hpp:40
HOST DEVICE bitset()
Definition: bitset.hpp:27
HOST DEVICE auto & operator&=(bitset< storage_type > const &other)
Definition: bitset.hpp:65
HOST DEVICE auto & operator~() const
Definition: bitset.hpp:86
HOST DEVICE bitset(storage_type *data)
Definition: bitset.hpp:31
HOST DEVICE auto & clear(index_type index)
Definition: bitset.hpp:45
constexpr static auto const bin_width
Definition: bitset.hpp:25
HOST DEVICE auto bin_count() const
Definition: bitset.hpp:34
index_t index_type
Definition: bitset.hpp:23
HOST DEVICE auto size() const
Definition: bitset.hpp:33
HOST DEVICE bitset(storage_type *data, index_type size)
Definition: bitset.hpp:29
storage_t storage_type
Definition: bitset.hpp:22
HOST DEVICE auto & flip()
Definition: bitset.hpp:56
HOST DEVICE auto & operator^=(bitset< storage_type > const &other)
Definition: bitset.hpp:79
HOST DEVICE auto & operator|=(bitset< storage_type > const &other)
Definition: bitset.hpp:72
HOST DEVICE auto test(index_type index) const
Definition: bitset.hpp:50