|
| 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 |
|
template<class T>
class nctl::BitSet< T >
A sequence of bits to be manipulated with logical operators.