|
Blender V4.3
|
#include <BLI_bit_ref.hh>
Public Member Functions | |
| BitRef ()=default | |
| BitRef (const BitInt *data, const int64_t bit_index) | |
| bool | test () const |
| operator bool () const | |
Friends | |
| class | MutableBitRef |
This is a read-only pointer to a specific bit. The value of the bit can be retrieved, but not changed.
Definition at line 85 of file BLI_bit_ref.hh.
|
default |
Reference a specific bit in an array. Note that #data does not have to point to the exact integer the bit is in.
Definition at line 101 of file BLI_bit_ref.hh.
References blender::bits::BitIndexMask, blender::bits::int_containing_bit(), and blender::bits::mask_single_bit().
|
inline |
Definition at line 117 of file BLI_bit_ref.hh.
References test().
|
inline |
Return true when the bit is currently 1 and false otherwise.
Definition at line 110 of file BLI_bit_ref.hh.
Referenced by operator bool().
|
friend |
Definition at line 92 of file BLI_bit_ref.hh.