#include <bitstring.h>
Public Member Functions | |
| Bit (uint32_t *p, uint32_t i) | |
| Constructor. | |
| Bit & | operator|= (bit_t bit) |
| Bit & | operator|= (const Bit &bit) |
| Bit & | operator &= (bit_t bit) |
| Bit & | operator &= (const Bit &bit) |
| Bit & | operator^= (bit_t bit) |
| Bit & | operator^= (const Bit &bit) |
| Bit & | operator= (bit_t bit) |
| Bit & | operator= (const Bit &bit) |
| Bit & | operator+= (bit_t bit) |
| Bit & | operator+= (const Bit &bit) |
| Bit & | operator-= (bit_t bit) |
| Bit & | operator-= (const Bit &bit) |
| bit_t | operator() () const |
| Bit & | reset () |
| Bit & | set () |
| Bit & | neg () |
Static Public Attributes | |
| static const bit_t | One = ONE |
| static const bit_t | Zero = ZERO |
Private Attributes | |
| uint32_t * | iptr |
| uint32_t | offset |
Called Bit for ease of use, e.g., Bit(a, 2) |= Bit::One;
|
||||||||||||
|
Constructor.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1.4.2