template<s32 N>
sead::LongBitFlag class

Public types

using Word = u32

Public static functions

static auto makeMask(int bit) -> Word

Public functions

void makeAllZero()
void makeAllOne()
auto getWord(int bit) -> Word&
auto getWord(int bit) const -> const Word&
auto isZero() const -> bool
void setBit(int bit)
void resetBit(int bit)
void changeBit(int bit, bool on)
void toggleBit(int bit)
auto isOnBit(int bit) const -> bool
auto isOffBit(int bit) const -> bool
auto countOnBit() const -> int
Popcount.
auto countRightOnBit(int bit) const -> int
Counts the number of 1 bits to the right of bit (bits [0, bit)).

Protected static variables

static s32 BitsPerWord constexpr
static s32 Shift constexpr

Protected variables

std::array<Word, N/BitsPerWord> mStorage