Blender
V3.3
|
#include <BLI_virtual_array.hh>
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 &UNUSED(varray)) const |
![]() | |
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 (IndexMask mask, MutableSpan< T > r_span) const |
virtual void | materialize_to_uninitialized (IndexMask mask, MutableSpan< T > r_span) const |
virtual void | materialize_compressed (IndexMask mask, MutableSpan< T > r_span) const |
virtual void | materialize_compressed_to_uninitialized (IndexMask mask, MutableSpan< T > r_span) const |
virtual bool | try_assign_GVArray (GVArray &UNUSED(varray)) const |
virtual bool | is_same (const VArrayImpl< T > &UNUSED(other)) const |
Additional Inherited Members | |
![]() | |
int64_t | size_ |
Similar to VArrayImpl, but adds methods that allow modifying the referenced elements.
Definition at line 207 of file BLI_virtual_array.hh.
|
pure virtual |
Assign the provided #value to the #index.
Implemented in blender::VArrayImpl_For_Span< T >, blender::bke::VArrayImpl_For_SplinePoints< T >, blender::bke::VArrayImpl_For_BezierHandles, blender::bke::VArrayImpl_For_SplinePosition, and blender::bke::VArrayImpl_For_VertexWeights.
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_SplinePoints< T >, blender::bke::VArrayImpl_For_BezierHandles, blender::bke::VArrayImpl_For_SplinePosition, and blender::bke::VArrayImpl_For_VertexWeights.
Definition at line 219 of file BLI_virtual_array.hh.
References blender::VArrayImpl< T >::common_info(), blender::CommonVArrayInfo::data, blender::initialized_copy_n(), blender::VMutableArrayImpl< T >::set(), blender::VArrayImpl< T >::size(), blender::VArrayImpl< T >::size_, blender::CommonVArrayInfo::Span, src, T, and blender::CommonVArrayInfo::type.
|
inlinevirtual |
Similar to #VArrayImpl::try_assign_GVArray but for mutable virtual arrays.
Definition at line 237 of file BLI_virtual_array.hh.