|
Blender V4.3
|
#include <BLI_virtual_array.hh>
Inherits blender::VArrayImpl< T >.
Inherited by blender::VArrayImpl_For_Span< T >, and blender::VMutableArrayImpl_For_GVMutableArray< T >.
Public Member Functions | |
| virtual void | set (int64_t index, T value)=0 |
| virtual void | set_all (Span< T > src) |
| virtual bool | try_assign_GVMutableArray (GVMutableArray &) const |
Public Member Functions inherited from blender::VArrayImpl< T > | |
| VArrayImpl (const int64_t size) | |
| virtual | ~VArrayImpl ()=default |
| int64_t | size () const |
| virtual T | get (int64_t index) const =0 |
| virtual CommonVArrayInfo | common_info () const |
| virtual void | materialize (const IndexMask &mask, T *dst) const |
| virtual void | materialize_to_uninitialized (const IndexMask &mask, T *dst) const |
| virtual void | materialize_compressed (const IndexMask &mask, T *dst) const |
| virtual void | materialize_compressed_to_uninitialized (const IndexMask &mask, T *dst) const |
| virtual bool | try_assign_GVArray (GVArray &) const |
Additional Inherited Members | |
Protected Attributes inherited from blender::VArrayImpl< T > | |
| int64_t | size_ |
Similar to VArrayImpl, but adds methods that allow modifying the referenced elements.
Definition at line 157 of file BLI_virtual_array.hh.
|
pure virtual |
Assign the provided #value to the #index.
Implemented in blender::bke::VArrayImpl_For_VertexWeights, blender::VArrayImpl_For_Span< T >, and blender::VArrayImpl_For_Span< typename Container::value_type >.
Referenced by blender::VMutableArrayImpl< T >::set_all().
|
inlinevirtual |
Copy all elements from the provided span into the virtual array.
Reimplemented in blender::bke::VArrayImpl_For_VertexWeights.
Definition at line 169 of file BLI_virtual_array.hh.
References blender::VArrayImpl< T >::common_info(), blender::CommonVArrayInfo::data, blender::Span< T >::data(), blender::initialized_copy_n(), blender::VMutableArrayImpl< T >::set(), blender::VArrayImpl< T >::size(), blender::VArrayImpl< T >::size_, blender::CommonVArrayInfo::Span, and blender::CommonVArrayInfo::type.
|
inlinevirtual |
Similar to VArrayImpl::try_assign_GVArray but for mutable virtual arrays.
Definition at line 187 of file BLI_virtual_array.hh.