|
libHSPlasma
|
References an individual bit within an hsBitVector. More...
#include <hsBitVector.h>
Public Member Functions | |
| Bit (hsBitVector *vec, unsigned int off) | |
| operator bool () const | |
| bool | operator! () const |
| bool | operator== (bool value) const |
| Bit & | operator= (bool value) |
References an individual bit within an hsBitVector.
This class is used internally by hsBitVector to enable easier access to individual bits. It allows you to assign bool values to subscripts of the Bit Vector directly, instead of needing the set() method.
| hsBitVector::Bit::Bit | ( | hsBitVector * | vec, |
| unsigned int | off | ||
| ) |
Constructs the Bit class
| hsBitVector::Bit::operator bool | ( | ) | const |
Behave like a bool rvalue
| bool hsBitVector::Bit::operator! | ( | ) | const |
Negation operator
| Bit& hsBitVector::Bit::operator= | ( | bool | value | ) |
Assignment operator – modifies the hsBitVector
| bool hsBitVector::Bit::operator== | ( | bool | value | ) | const |
Comparison operator
1.8.1.2