An auxiliary class for single bits in OverlayKey. More...
#include <OverlayKey.h>
Public Member Functions | |
| OverlayKeyBit (bool value, uint32_t pos, OverlayKey *key) | |
| operator bool () | |
| Converts to a boolean value. | |
| OverlayKeyBit & | operator= (const OverlayKeyBit &value) |
| OverlayKeyBit & | operator= (bool value) |
| Sets the corresponding bit to a boolean value. | |
| OverlayKeyBit & | operator^= (bool value) |
Private Attributes | |
| bool | bit |
| uint32_t | pos |
| OverlayKey * | key |
An auxiliary class for single bits in OverlayKey.
Allows statements like "key[n] = true"
Definition at line 527 of file OverlayKey.h.
| OverlayKeyBit::OverlayKeyBit | ( | bool | value, | |
| uint32_t | pos, | |||
| OverlayKey * | key | |||
| ) | [inline] |
| OverlayKeyBit::operator bool | ( | ) | [inline] |
| OverlayKeyBit& OverlayKeyBit::operator= | ( | const OverlayKeyBit & | value | ) | [inline] |
| OverlayKeyBit& OverlayKeyBit::operator= | ( | bool | value | ) | [inline] |
Sets the corresponding bit to a boolean value.
| value | value to set to |
Definition at line 550 of file OverlayKey.h.
| OverlayKeyBit& OverlayKeyBit::operator^= | ( | bool | value | ) | [inline] |
bool OverlayKeyBit::bit [private] |
Definition at line 560 of file OverlayKey.h.
Referenced by operator bool(), and operator=().
OverlayKey* OverlayKeyBit::key [private] |
Definition at line 566 of file OverlayKey.h.
Referenced by operator=(), and operator^=().
uint32_t OverlayKeyBit::pos [private] |
Definition at line 565 of file OverlayKey.h.
Referenced by operator=(), and operator^=().
1.7.1