ZXFoundation™ 26h2
Loading...
Searching...
No Matches
lib::bitfield_ref< T, Numbering > Class Template Referenceexport

Public Types

using numbering = Numbering
using storage_type = T
using traits = storage_traits<T>

Public Member Functions

constexpr bitfield_ref (const void *ptr) noexcept
constexpr bitfield_ref (T &storage) noexcept
constexpr bitfield_ref (void *ptr) noexcept
constexpr auto clear (usize bit) noexcept -> bitfield_ref &
template<usize A, usize B, class Transformer = void>
constexpr auto extract () const noexcept
template<usize A, usize B, usize Alignment>
constexpr auto extract_aligned () const noexcept -> u64
template<usize A, usize B, class Transformer = void, class ValT>
constexpr auto insert (ValT &&v) noexcept -> bitfield_ref &
template<usize A, usize B, usize Alignment>
constexpr auto insert_aligned (u64 address) noexcept -> bitfield_ref &
constexpr operator T () const noexcept
constexpr auto operator[] (this auto &&self, usize bit) noexcept
constexpr auto raw () const noexcept -> const T &
constexpr auto raw () noexcept -> T &
constexpr auto set (usize bit, bool v=true) noexcept -> bitfield_ref &
constexpr auto test (usize bit) const noexcept -> bool
constexpr auto try_clear (usize bit) noexcept -> std::expected< void, kernel_error >
constexpr auto try_set (usize bit, bool v=true) noexcept -> std::expected< void, kernel_error >
constexpr auto try_test (usize bit) const noexcept -> std::expected< bool, kernel_error >
constexpr auto value () const noexcept -> T

Static Public Attributes

static constexpr usize extent = traits::total_bits

The documentation for this class was generated from the following file: