|
nCine 2025.12.r526-6729713
A cross-platform 2D game engine
|
A sequence of bits to be manipulated with logical operators. More...
#include <BitSet.h>
Public Member Functions | |
| BitSet (T value) | |
| bool | operator== (const BitSet &other) const |
| bool | operator!= (const BitSet &other) const |
| bool | test (unsigned int pos) const |
| bool | all () const |
| bool | any () const |
| bool | none () const |
| unsigned int | count () const |
| unsigned int | size () const |
| BitSet & | operator&= (const BitSet &other) |
| BitSet & | operator|= (const BitSet &other) |
| BitSet & | operator^= (const BitSet &other) |
| BitSet | operator~ () const |
| BitSet & | operator<<= (unsigned int pos) |
| BitSet & | operator>>= (unsigned int pos) |
| BitSet | operator<< (unsigned int pos) const |
| BitSet | operator>> (unsigned int pos) const |
| void | set () |
| Sets all bits in the bitset. | |
| void | set (unsigned int pos) |
| Sets the bit at the specified position. | |
| void | set (unsigned int pos, bool value) |
| Sets the bit at the specified position with the specified value. | |
| void | reset () |
| Resets all bits in the bitset. | |
| void | reset (unsigned int pos) |
| Resets the bit at the specified position. | |
| void | flip (unsigned int pos) |
| Flips the bit at the specified position. | |
| unsigned int | count () const |
| unsigned int | count () const |
| unsigned int | count () const |
| unsigned int | count () const |
Friends | |
| BitSet | operator& (const BitSet &lhs, const BitSet &rhs) |
| BitSet | operator| (const BitSet &lhs, const BitSet &rhs) |
| BitSet | operator^ (const BitSet &lhs, const BitSet &rhs) |
A sequence of bits to be manipulated with logical operators.
|
inline |
|
inline |
| unsigned int nctl::BitSet< T >::count | ( | ) | const |
|
inline |
|
inline |
|
inline |