|
| using | T = std::conditional_t< 8 >=N, std::uint8_t, std::conditional_t< 16 >=N, std::uint16_t, std::conditional_t< 32 >=N, std::uint32_t, std::uint64_t > > > |
| |
| using | value_type = T |
| |
|
| template<class CharT > |
| | BitSet (CharT const *str, typename std::basic_string< CharT >::size_type n=std::basic_string< CharT >::npos, CharT zero=CharT('0'), CharT one=CharT('1')) |
| |
| template<class CharT , class Traits , class Alloc > |
| | BitSet (std::basic_string< CharT, Traits, Alloc > const &str, typename std::basic_string< CharT, Traits, Alloc >::size_type pos=0, typename std::basic_string< CharT, Traits, Alloc >::size_type n=std::basic_string< CharT, Traits, Alloc >::npos, CharT zero=CharT('0'), CharT one=CharT('1')) |
| |
| constexpr | BitSet (T val) noexcept |
| |
| constexpr bool | all () const noexcept |
| |
| constexpr bool | any () const noexcept |
| |
| constexpr std::size_t | count () const noexcept |
| |
| constexpr value_type | data () const |
| |
| constexpr void | flip () noexcept |
| |
| constexpr void | flip (std::size_t pos) |
| |
| constexpr bool | none () const noexcept |
| |
| constexpr bool | operator!= (BitSet rhs) const noexcept |
| |
| constexpr BitSet & | operator&= (BitSet const other) noexcept |
| |
| constexpr bool | operator== (BitSet rhs) const noexcept |
| |
| constexpr Reference | operator[] (std::size_t pos) |
| |
| constexpr bool | operator[] (std::size_t pos) const |
| |
| constexpr BitSet & | operator^= (BitSet const &other) noexcept |
| |
| constexpr BitSet & | operator|= (BitSet const &other) noexcept |
| |
| constexpr BitSet | operator~ () const noexcept |
| |
| constexpr void | reset () noexcept |
| |
| constexpr void | reset (std::size_t pos) |
| |
| constexpr void | set () noexcept |
| |
| constexpr void | set (std::size_t pos) |
| |
| constexpr void | set (std::size_t pos, bool value) |
| |
| constexpr bool | some () const noexcept |
| |
| bool | test (std::size_t pos) const |
| |
|
| static constexpr std::size_t | size () noexcept |
| |
template<std::size_t N>
class ufo::BitSet< N >
Definition at line 56 of file bit_set.hpp.
template<std::size_t N>
| using ufo::BitSet< N >::T = std::conditional_t< 8 >= N, std::uint8_t, std::conditional_t<16 >= N, std::uint16_t, std::conditional_t<32 >= N, std::uint32_t, std::uint64_t> >> |
◆ value_type
◆ BitSet() [1/3]
◆ BitSet() [2/3]
template<std::size_t N>
template<class CharT , class Traits , class Alloc >
| ufo::BitSet< N >::BitSet |
( |
std::basic_string< CharT, Traits, Alloc > const & |
str, |
|
|
typename std::basic_string< CharT, Traits, Alloc >::size_type |
pos = 0, |
|
|
typename std::basic_string< CharT, Traits, Alloc >::size_type |
n = std::basic_string<CharT, Traits, Alloc>::npos, |
|
|
CharT |
zero = CharT('0'), |
|
|
CharT |
one = CharT('1') |
|
) |
| |
|
inlineexplicit |
◆ BitSet() [3/3]
template<std::size_t N>
template<class CharT >
| ufo::BitSet< N >::BitSet |
( |
CharT const * |
str, |
|
|
typename std::basic_string< CharT >::size_type |
n = std::basic_string<CharT>::npos, |
|
|
CharT |
zero = CharT('0'), |
|
|
CharT |
one = CharT('1') |
|
) |
| |
|
inlineexplicit |
◆ all()
◆ any()
◆ count()
template<std::size_t N>
| constexpr std::size_t ufo::BitSet< N >::count |
( |
| ) |
const |
|
inlineconstexprnoexcept |
◆ data()
◆ flip() [1/2]
◆ flip() [2/2]
template<std::size_t N>
| constexpr void ufo::BitSet< N >::flip |
( |
std::size_t |
pos | ) |
|
|
inlineconstexpr |
◆ none()
◆ operator!=()
◆ operator&=()
◆ operator==()
◆ operator[]() [1/2]
◆ operator[]() [2/2]
template<std::size_t N>
| constexpr bool ufo::BitSet< N >::operator[] |
( |
std::size_t |
pos | ) |
const |
|
inlineconstexpr |
◆ operator^=()
◆ operator|=()
◆ operator~()
◆ reset() [1/2]
◆ reset() [2/2]
template<std::size_t N>
| constexpr void ufo::BitSet< N >::reset |
( |
std::size_t |
pos | ) |
|
|
inlineconstexpr |
◆ set() [1/3]
◆ set() [2/3]
template<std::size_t N>
| constexpr void ufo::BitSet< N >::set |
( |
std::size_t |
pos | ) |
|
|
inlineconstexpr |
◆ set() [3/3]
template<std::size_t N>
| constexpr void ufo::BitSet< N >::set |
( |
std::size_t |
pos, |
|
|
bool |
value |
|
) |
| |
|
inlineconstexpr |
◆ size()
template<std::size_t N>
| static constexpr std::size_t ufo::BitSet< N >::size |
( |
| ) |
|
|
inlinestaticconstexprnoexcept |
◆ some()
◆ test()
The documentation for this class was generated from the following file: