FastLED 3.9.15
Loading...
Searching...
No Matches
fl::bitset_dynamic Class Reference

Detailed Description

A dynamic bitset implementation that can be resized at runtime.

Definition at line 20 of file bitset_dynamic.h.

#include <bitset_dynamic.h>

Public Member Functions

 bitset_dynamic ()=default
 
 bitset_dynamic (bitset_dynamic &&other) noexcept
 
 bitset_dynamic (const bitset_dynamic &other)
 
 bitset_dynamic (fl::u32 size)
 
 ~bitset_dynamic ()
 
bool all () const noexcept
 
bool any () const noexcept
 
FL_DISABLE_WARNING_PUSH FL_DISABLE_WARNING_NULL_DEREFERENCE void assign (fl::u32 n, bool value)
 
FL_DISABLE_WARNING_POP void clear ()
 
FL_DISABLE_WARNING_POP fl::u32 count () const noexcept
 
fl::i32 find_first (bool test_value, fl::u32 offset=0) const noexcept
 Finds the first bit that matches the test value.
 
FL_DISABLE_WARNING_POP void flip () noexcept
 
FL_DISABLE_WARNING_PUSH FL_DISABLE_WARNING_NULL_DEREFERENCE void flip (fl::u32 pos) noexcept
 
bool none () const noexcept
 
bitset_dynamic operator& (const bitset_dynamic &other) const
 
bitset_dynamicoperator= (bitset_dynamic &&other) noexcept
 
bitset_dynamicoperator= (const bitset_dynamic &other)
 
bool operator[] (fl::u32 pos) const noexcept
 
bitset_dynamic operator^ (const bitset_dynamic &other) const
 
bitset_dynamic operator| (const bitset_dynamic &other) const
 
bitset_dynamic operator~ () const
 
FL_DISABLE_WARNING_PUSH FL_DISABLE_WARNING_NULL_DEREFERENCE void reset () noexcept
 
FL_DISABLE_WARNING_POP FL_DISABLE_WARNING_PUSH FL_DISABLE_WARNING_NULL_DEREFERENCE void reset (fl::u32 pos) noexcept
 
FL_DISABLE_WARNING_POP FL_DISABLE_WARNING_PUSH FL_DISABLE_WARNING_NULL_DEREFERENCE void resize (fl::u32 new_size)
 
FL_DISABLE_WARNING_POP FL_DISABLE_WARNING_PUSH FL_DISABLE_WARNING_NULL_DEREFERENCE void set (fl::u32 pos) noexcept
 
FL_DISABLE_WARNING_POP void set (fl::u32 pos, bool value) noexcept
 
FL_DISABLE_WARNING_PUSH FL_DISABLE_WARNING_NULL_DEREFERENCE fl::u32 size () const noexcept
 
FL_DISABLE_WARNING_PUSH FL_DISABLE_WARNING_NULL_DEREFERENCE bool test (fl::u32 pos) const noexcept
 
FL_DISABLE_WARNING_POP void to_string (string *dst) const
 

Private Types

using block_type = fl::u16
 

Static Private Member Functions

static fl::u32 calc_block_count (fl::u32 bit_count)
 

Private Attributes

fl::u32 _block_count = 0
 
block_type_blocks = nullptr
 
fl::u32 _size = 0
 

Static Private Attributes

static constexpr fl::u32 bits_per_block = 8 * sizeof(fl::u16)
 

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