|
Blender V5.3
|
#include <BLI_bit_vector.hh>
Public Member Functions | |
| BitVector (Allocator allocator={}) noexcept | |
| BitVector (NoExceptConstructor, Allocator allocator={}) noexcept | |
| BitVector (const BoundedBitSpan span) | |
| BitVector (const BitVector &other) | |
| BitVector (BitVector &&other) noexcept | |
| BitVector (const int64_t size_in_bits, const bool value=false, Allocator allocator={}) | |
| BitVector (const Span< bool > values, Allocator allocator={}) | |
| ~BitVector () | |
| BitVector & | operator= (const BitVector &other) |
| BitVector & | operator= (BitVector &&other) |
| operator BoundedBitSpan () const | |
| operator MutableBoundedBitSpan () | |
| int64_t | size () const |
| int64_t | capacity () const |
| bool | is_empty () const |
| BitInt * | data () |
| const BitInt * | data () const |
| BitRef | operator[] (const int64_t index) const |
| MutableBitRef | operator[] (const int64_t index) |
| IndexRange | index_range () const |
| void | append (const bool value) |
| BitIterator | begin () const |
| MutableBitIterator | begin () |
| BitIterator | end () const |
| MutableBitIterator | end () |
| void | resize (const int64_t new_size_in_bits, const bool value=false) |
| void | fill (const bool value) |
| void | reserve (const int new_capacity_in_bits) |
| void | clear () |
| void | clear_and_shrink () |
| InlineBufferCapacity | Number of bits that can be stored in the vector without doing an allocation. |
| Allocator | The allocator used by this vector. Should rarely be changed, except when you don't want that MEM_* is used internally. |
Definition at line 59 of file BLI_bit_vector.hh.
|
inlinenoexcept |
Definition at line 89 of file BLI_bit_vector.hh.
Referenced by blender::BKE_blendfile_link_append_context_item_add(), and blender::draw::pbvh::calc_use_flat_layout().
|
inlinenoexcept |
Definition at line 97 of file BLI_bit_vector.hh.
|
inline |
Definition at line 99 of file BLI_bit_vector.hh.
|
inline |
Definition at line 117 of file BLI_bit_vector.hh.
|
inlinenoexcept |
Definition at line 122 of file BLI_bit_vector.hh.
|
inline |
Create a new vector with the given size and fill it with #value.
Definition at line 152 of file BLI_bit_vector.hh.
|
inlineexplicit |
Create a bit vector based on an array of bools. Each byte of the input array maps to one bit.
Definition at line 161 of file BLI_bit_vector.hh.
|
inline |
Definition at line 168 of file BLI_bit_vector.hh.
|
inline |
Add a new bit to the end of the vector.
Definition at line 254 of file BLI_bit_vector.hh.
|
inline |
Definition at line 272 of file BLI_bit_vector.hh.
|
inline |
Definition at line 262 of file BLI_bit_vector.hh.
|
inline |
Number of bits that can be stored before the BitVector has to grow.
Definition at line 206 of file BLI_bit_vector.hh.
|
inline |
Reset the size of the vector to zero elements, but keep the same memory capacity to be refilled again.
Definition at line 321 of file BLI_bit_vector.hh.
|
inline |
Free memory and reset the vector to zero elements.
Definition at line 329 of file BLI_bit_vector.hh.
|
inline |
Definition at line 216 of file BLI_bit_vector.hh.
|
inline |
Definition at line 221 of file BLI_bit_vector.hh.
|
inline |
Definition at line 277 of file BLI_bit_vector.hh.
|
inline |
Definition at line 267 of file BLI_bit_vector.hh.
|
inline |
Set #value on every element.
Definition at line 303 of file BLI_bit_vector.hh.
|
inline |
Definition at line 246 of file BLI_bit_vector.hh.
|
inline |
Definition at line 211 of file BLI_bit_vector.hh.
|
inline |
Definition at line 185 of file BLI_bit_vector.hh.
|
inline |
Definition at line 190 of file BLI_bit_vector.hh.
|
inline |
Definition at line 180 of file BLI_bit_vector.hh.
|
inline |
Definition at line 175 of file BLI_bit_vector.hh.
|
inlinenodiscard |
Get a mutable reference to a specific bit.
Definition at line 239 of file BLI_bit_vector.hh.
|
inlinenodiscard |
Get a read-only reference to a specific bit.
Definition at line 229 of file BLI_bit_vector.hh.
|
inline |
Make sure that the capacity of the vector is large enough to hold the given amount of bits. The actual size is not changed.
Definition at line 312 of file BLI_bit_vector.hh.
|
inline |
Change the size of the vector. If the new vector is larger than the old one, the new elements are filled with #value.
Definition at line 286 of file BLI_bit_vector.hh.
|
inline |
Number of bits in the bit vector.
Definition at line 198 of file BLI_bit_vector.hh.