#include <experimental/experimental.h>
◆ storage_type
◆ value_type
Type of the storage elements.
◆ Dynamic_bitset()
qpp::experimental::Dynamic_bitset::Dynamic_bitset |
( |
idx |
N | ) |
|
|
inline |
Constructor, initializes all bits to false (zero)
- Parameters
-
N | Number of bits in the bitset |
◆ all()
bool qpp::experimental::Dynamic_bitset::all |
( |
| ) |
const |
|
inlinenoexcept |
◆ any()
bool qpp::experimental::Dynamic_bitset::any |
( |
| ) |
const |
|
inlinenoexcept |
◆ count()
idx qpp::experimental::Dynamic_bitset::count |
( |
| ) |
const |
|
inlinenoexcept |
◆ data()
const storage_type& qpp::experimental::Dynamic_bitset::data |
( |
| ) |
const |
|
inline |
Raw storage space of the bitset.
- Returns
- Const reference to the underlying storage space
◆ flip() [1/2]
◆ flip() [2/2]
◆ get()
bool qpp::experimental::Dynamic_bitset::get |
( |
idx |
pos | ) |
const |
|
inline |
◆ index_()
idx qpp::experimental::Dynamic_bitset::index_ |
( |
idx |
pos | ) |
const |
|
inlineprotected |
Index of the pos bit in the storage space.
- Parameters
-
- Returns
- Index of the pos bit in the storage space
◆ none()
bool qpp::experimental::Dynamic_bitset::none |
( |
| ) |
const |
|
inlinenoexcept |
◆ offset_()
idx qpp::experimental::Dynamic_bitset::offset_ |
( |
idx |
pos | ) |
const |
|
inlineprotected |
Offset of the pos bit in the storage space relative to its index.
- Parameters
-
- Returns
- Offset of the pos bit in the storage space relative to its index
◆ operator!=()
bool qpp::experimental::Dynamic_bitset::operator!= |
( |
const Dynamic_bitset & |
rhs | ) |
const |
|
inlinenoexcept |
◆ operator==()
bool qpp::experimental::Dynamic_bitset::operator== |
( |
const Dynamic_bitset & |
rhs | ) |
const |
|
inlinenoexcept |
◆ rand() [1/2]
◆ rand() [2/2]
Dynamic_bitset& qpp::experimental::Dynamic_bitset::rand |
( |
double |
p = 0.5 | ) |
|
|
inline |
◆ reset() [1/2]
◆ reset() [2/2]
◆ set() [1/2]
Dynamic_bitset& qpp::experimental::Dynamic_bitset::set |
( |
idx |
pos, |
|
|
bool |
value = true |
|
) |
| |
|
inline |
◆ set() [2/2]
◆ size()
idx qpp::experimental::Dynamic_bitset::size |
( |
| ) |
const |
|
inline |
Number of bits stored in the bitset.
- Returns
- Number of bits
◆ storage_size()
idx qpp::experimental::Dynamic_bitset::storage_size |
( |
| ) |
const |
|
inline |
Size of the underlying storage space (in units of value_type, unsigned int by default)
- Returns
- Size of the underlying storage space
◆ to_string()
template<class CharT = char, class Traits = std::char_traits<CharT>, class Allocator = std::allocator<CharT>>
std::basic_string<CharT, Traits, Allocator> qpp::experimental::Dynamic_bitset::to_string |
( |
CharT |
zero = CharT('0') , |
|
|
CharT |
one = CharT('1') |
|
) |
| const |
|
inline |
- Template Parameters
-
- Parameters
-
- Returns
◆ operator<<
std::ostream& operator<< |
( |
std::ostream & |
os, |
|
|
const Dynamic_bitset & |
rhs |
|
) |
| |
|
friend |
◆ N_
idx qpp::experimental::Dynamic_bitset::N_ |
|
protected |
◆ storage_size_
idx qpp::experimental::Dynamic_bitset::storage_size_ |
|
protected |
◆ v_
std::vector<value_type> qpp::experimental::Dynamic_bitset::v_ |
|
protected |
The documentation for this class was generated from the following file: