template<s32 N>
LongBitFlag class
Public types
Public static functions
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