sparrow 0.3.0
|
Base class for dynamic_bitset and dynamic_bitset_view. More...
#include <dynamic_bitset_base.hpp>
Public Types | |
using | self_type = dynamic_bitset_base<B> |
using | storage_type = B |
using | storage_type_without_cvrefpointer = std::remove_pointer_t<std::remove_cvref_t<storage_type>> |
using | block_type = typename storage_type_without_cvrefpointer::value_type |
using | value_type = bool |
using | reference = bitset_reference<self_type> |
using | const_reference = bool |
using | size_type = typename storage_type_without_cvrefpointer::size_type |
using | difference_type = typename storage_type_without_cvrefpointer::difference_type |
using | iterator = bitset_iterator<self_type, false> |
using | const_iterator = bitset_iterator<self_type, true> |
Public Member Functions | |
constexpr size_type | size () const noexcept |
constexpr bool | empty () const noexcept |
constexpr size_type | null_count () const noexcept |
constexpr bool | test (size_type pos) const |
constexpr void | set (size_type pos, value_type value) |
constexpr const_reference | at (size_type pos) const |
constexpr reference | at (size_type pos) |
constexpr reference | operator[] (size_type i) |
constexpr const_reference | operator[] (size_type i) const |
constexpr block_type * | data () noexcept |
constexpr const block_type * | data () const noexcept |
constexpr size_type | block_count () const noexcept |
constexpr void | swap (self_type &) noexcept |
constexpr iterator | begin () |
constexpr iterator | end () |
constexpr const_iterator | begin () const |
constexpr const_iterator | end () const |
constexpr const_iterator | cbegin () const |
constexpr const_iterator | cend () const |
constexpr reference | front () |
constexpr const_reference | front () const |
constexpr reference | back () |
constexpr const_reference | back () const |
constexpr const storage_type_without_cvrefpointer & | buffer () const noexcept |
constexpr storage_type_without_cvrefpointer & | buffer () noexcept |
storage_type | extract_storage () noexcept |
Static Public Member Functions | |
static constexpr size_type | compute_block_count (size_type bits_count) noexcept |
Protected Member Functions | |
constexpr | dynamic_bitset_base (storage_type buffer, size_type size) |
constexpr | dynamic_bitset_base (storage_type buffer, size_type size, size_type null_count) |
constexpr | ~dynamic_bitset_base ()=default |
constexpr | dynamic_bitset_base (const dynamic_bitset_base &)=default |
constexpr | dynamic_bitset_base (dynamic_bitset_base &&) noexcept=default |
constexpr dynamic_bitset_base & | operator= (const dynamic_bitset_base &)=default |
constexpr dynamic_bitset_base & | operator= (dynamic_bitset_base &&) noexcept=default |
constexpr void | resize (size_type n, value_type b=false) |
constexpr void | clear () noexcept |
constexpr iterator | insert (const_iterator pos, value_type value) |
constexpr iterator | insert (const_iterator pos, size_type count, value_type value) |
template<std::input_iterator InputIt> requires std::ranges::random_access_range<std::remove_pointer_t<B>> | |
constexpr iterator | insert (const_iterator pos, InputIt first, InputIt last) |
constexpr iterator | insert (const_iterator pos, std::initializer_list< value_type > ilist) |
constexpr iterator | emplace (const_iterator pos, value_type value) |
constexpr iterator | erase (const_iterator pos) |
constexpr iterator | erase (const_iterator first, const_iterator last) |
constexpr void | push_back (value_type value) |
constexpr void | pop_back () |
Friends | |
class | bitset_iterator< self_type, true > |
class | bitset_iterator< self_type, false > |
class | bitset_reference< self_type > |
Base class for dynamic_bitset and dynamic_bitset_view.
Both represent a dynamic size sequence of bits. The only difference between dynamic_bitset and dynamic_bitset_view is that the former holds and manages its memory while the second does not.
B | the underlying storage |
Definition at line 42 of file dynamic_bitset_base.hpp.
using sparrow::dynamic_bitset_base< B >::block_type = typename storage_type_without_cvrefpointer::value_type |
Definition at line 49 of file dynamic_bitset_base.hpp.
using sparrow::dynamic_bitset_base< B >::const_iterator = bitset_iterator<self_type, true> |
Definition at line 56 of file dynamic_bitset_base.hpp.
using sparrow::dynamic_bitset_base< B >::const_reference = bool |
Definition at line 52 of file dynamic_bitset_base.hpp.
using sparrow::dynamic_bitset_base< B >::difference_type = typename storage_type_without_cvrefpointer::difference_type |
Definition at line 54 of file dynamic_bitset_base.hpp.
using sparrow::dynamic_bitset_base< B >::iterator = bitset_iterator<self_type, false> |
Definition at line 55 of file dynamic_bitset_base.hpp.
using sparrow::dynamic_bitset_base< B >::reference = bitset_reference<self_type> |
Definition at line 51 of file dynamic_bitset_base.hpp.
using sparrow::dynamic_bitset_base< B >::self_type = dynamic_bitset_base<B> |
Definition at line 46 of file dynamic_bitset_base.hpp.
using sparrow::dynamic_bitset_base< B >::size_type = typename storage_type_without_cvrefpointer::size_type |
Definition at line 53 of file dynamic_bitset_base.hpp.
using sparrow::dynamic_bitset_base< B >::storage_type = B |
Definition at line 47 of file dynamic_bitset_base.hpp.
using sparrow::dynamic_bitset_base< B >::storage_type_without_cvrefpointer = std::remove_pointer_t<std::remove_cvref_t<storage_type>> |
Definition at line 48 of file dynamic_bitset_base.hpp.
using sparrow::dynamic_bitset_base< B >::value_type = bool |
Definition at line 50 of file dynamic_bitset_base.hpp.
|
constexprprotected |
Definition at line 384 of file dynamic_bitset_base.hpp.
|
constexprprotected |
|
constexprprotecteddefault |
|
constexprprotecteddefault |
|
constexprprotecteddefaultnoexcept |
|
nodiscardconstexpr |
|
nodiscardconstexpr |
|
nodiscardconstexpr |
|
nodiscardconstexpr |
|
nodiscardconstexpr |
|
nodiscardconstexpr |
|
nodiscardconstexprnoexcept |
|
inlinenodiscardconstexprnoexcept |
|
inlinenodiscardconstexprnoexcept |
Definition at line 102 of file dynamic_bitset_base.hpp.
|
nodiscardconstexpr |
Definition at line 301 of file dynamic_bitset_base.hpp.
|
nodiscardconstexpr |
Definition at line 308 of file dynamic_bitset_base.hpp.
|
constexprprotectednoexcept |
|
staticnodiscardconstexprnoexcept |
|
nodiscardconstexprnoexcept |
|
nodiscardconstexprnoexcept |
Definition at line 241 of file dynamic_bitset_base.hpp.
|
constexprprotected |
|
nodiscardconstexprnoexcept |
Definition at line 180 of file dynamic_bitset_base.hpp.
|
nodiscardconstexpr |
Definition at line 279 of file dynamic_bitset_base.hpp.
|
nodiscardconstexpr |
|
constexprprotected |
|
constexprprotected |
Definition at line 620 of file dynamic_bitset_base.hpp.
|
inlinenodiscardnoexcept |
Definition at line 117 of file dynamic_bitset_base.hpp.
|
nodiscardconstexpr |
|
nodiscardconstexpr |
|
constexprprotected |
|
constexprprotected |
|
constexprprotected |
|
constexprprotected |
Definition at line 543 of file dynamic_bitset_base.hpp.
|
nodiscardconstexprnoexcept |
|
constexprprotecteddefault |
|
constexprprotecteddefaultnoexcept |
|
nodiscardconstexpr |
|
nodiscardconstexpr |
|
constexprprotected |
|
constexprprotected |
|
constexprprotected |
Definition at line 506 of file dynamic_bitset_base.hpp.
|
constexpr |
Definition at line 222 of file dynamic_bitset_base.hpp.
|
nodiscardconstexprnoexcept |
Definition at line 173 of file dynamic_bitset_base.hpp.
|
constexprnoexcept |
Definition at line 262 of file dynamic_bitset_base.hpp.
|
nodiscardconstexpr |
Definition at line 210 of file dynamic_bitset_base.hpp.
|
friend |
Definition at line 164 of file dynamic_bitset_base.hpp.
|
friend |
Definition at line 164 of file dynamic_bitset_base.hpp.
|
friend |
Definition at line 164 of file dynamic_bitset_base.hpp.