|
Blender V5.0
|
#include <BLI_generic_virtual_array.hh>
Inherits blender::VArrayImpl< T >.
Public Member Functions | |
| VArrayImpl_For_GVArray (GVArray varray) | |
| Public Member Functions inherited from blender::VArrayImpl< T > | |
| VArrayImpl (const int64_t size) | |
| virtual | ~VArrayImpl ()=default |
| int64_t | size () const |
Protected Member Functions | |
| T | get (const int64_t index) const override |
| CommonVArrayInfo | common_info () const override |
| bool | try_assign_GVArray (GVArray &varray) const override |
| void | materialize (const IndexMask &mask, T *dst, const bool dst_is_uninitialized) const override |
| void | materialize_compressed (const IndexMask &mask, T *dst, const bool dst_is_uninitialized) const override |
Protected Attributes | |
| GVArray | varray_ |
| Protected Attributes inherited from blender::VArrayImpl< T > | |
| int64_t | size_ |
Definition at line 353 of file BLI_generic_virtual_array.hh.
|
inline |
Definition at line 358 of file BLI_generic_virtual_array.hh.
References BLI_assert, blender::VArrayImpl< T >::size(), T, varray_, and blender::VArrayImpl< T >::VArrayImpl().
|
inlineoverrideprotectedvirtual |
Reimplemented from blender::VArrayImpl< T >.
Definition at line 372 of file BLI_generic_virtual_array.hh.
References varray_.
|
inlineoverrideprotectedvirtual |
Get the element at #index. This does not return a reference, because the value may be computed on the fly.
Implements blender::VArrayImpl< T >.
Definition at line 365 of file BLI_generic_virtual_array.hh.
|
inlineoverrideprotectedvirtual |
Copy values from the virtual array into the provided span. The index of the value in the virtual array is the same as the index in the span.
Reimplemented from blender::VArrayImpl< T >.
Definition at line 383 of file BLI_generic_virtual_array.hh.
|
inlineoverrideprotectedvirtual |
Copy values from the virtual array into the provided span. Contrary to materialize, the index in virtual array is not the same as the index in the output span. Instead, the span is filled without gaps.
Reimplemented from blender::VArrayImpl< T >.
Definition at line 388 of file BLI_generic_virtual_array.hh.
|
inlineoverrideprotectedvirtual |
If this virtual wraps another GVArray, this method should assign the wrapped array to the provided reference. This allows losslessly converting between generic and typed virtual arrays in all cases. Return true when the virtual array was assigned and false when nothing was done.
Reimplemented from blender::VArrayImpl< T >.
Definition at line 377 of file BLI_generic_virtual_array.hh.
References varray_.
|
protected |
Definition at line 355 of file BLI_generic_virtual_array.hh.
Referenced by common_info(), get(), materialize(), materialize_compressed(), try_assign_GVArray(), and VArrayImpl_For_GVArray().