|
Blender V5.0
|
#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 84 of file BLI_bit_ref.hh.
|
default |
|
inline |
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 100 of file BLI_bit_ref.hh.
References blender::bits::BitIndexMask, data, blender::bits::int_containing_bit(), and blender::bits::mask_single_bit().
|
inline |
Definition at line 116 of file BLI_bit_ref.hh.
References test().
|
inline |
Return true when the bit is currently 1 and false otherwise.
Definition at line 109 of file BLI_bit_ref.hh.
Referenced by operator bool().
|
friend |
Definition at line 91 of file BLI_bit_ref.hh.
References MutableBitRef.
Referenced by MutableBitRef.