class
#include <nCine/Base/BitArray.h>
BitArray Bit array.
Constructors, destructors, conversion operators
- BitArray()
-
BitArray(ValueInitT,
std::
size_t sizeInBits) -
BitArray(NoInitT,
std::
size_t sizeInBits) - ~BitArray()
- BitArray(const BitArray&) deleted
- BitArray(BitArray&& other) noexcept
Public functions
- auto operator=(const BitArray&) -> BitArray& deleted
- auto operator=(BitArray&& other) -> BitArray& noexcept
- auto data() -> char*
- auto empty() const -> bool
-
auto size() const -> std::
size_t -
auto sizeInBytes() const -> std::
size_t -
void resize(ValueInitT,
std::
size_t sizeInBits) -
void resize(NoInitT,
std::
size_t sizeInBits) - void setAll()
- void resetAll()
-
void set(std::
size_t bit) -
void set(std::
size_t bit, bool value) -
void reset(std::
size_t bit) -
auto operator()(const std::
size_t bit) -> BitArrayIndex -
auto operator[](std::
size_t bit) const -> bool - auto operator==(const BitArray& other) const -> bool
- auto operator&(const BitArray& other) const -> BitArray
- auto operator^(const BitArray& other) const -> BitArray
- auto operator|(const BitArray& other) const -> BitArray
- auto operator~() const -> BitArray
-
auto operator<<(std::
size_t count) const -> BitArray -
auto operator>>(std::
size_t count) const -> BitArray - auto operator++() -> BitArray&
- auto operator++(int) -> BitArray&
- auto operator--() -> BitArray&
- auto operator--(int) -> BitArray&
- auto operator&=(const BitArray& src) -> BitArray&
- auto operator^=(const BitArray& src) -> BitArray&
- auto operator|=(const BitArray& src) -> BitArray&
- auto notAll() -> BitArray&
-
auto operator<<=(std::
size_t shifts) -> BitArray& -
auto operator>>=(std::
size_t shifts) -> BitArray&
Protected variables
- char* _data
-
std::
size_t _size