|
Blender V5.3
|
#include <BLI_virtual_array.hh>
Inherits blender::VArrayCommon< T >.
Static Public Member Functions | |
| template<typename ImplT, typename... Args> | |
| static VMutableArray | from (Args &&...args) |
| static VMutableArray | from_span (MutableSpan< T > values) |
| template<typename StructT, T(*)(const StructT &) GetFunc, void(*)(StructT &, T) SetFunc> | |
| static VMutableArray | from_derived_span (MutableSpan< StructT > values) |
| template<typename ContainerT> | |
| static VMutableArray | from_container (ContainerT container) |
Additional Inherited Members | |
| Protected Member Functions inherited from blender::VArrayCommon< T > | |
| VArrayCommon ()=default | |
| VArrayCommon (const VArrayImpl< T > *impl) | |
| VArrayCommon (std::shared_ptr< const VArrayImpl< T > > impl) | |
| template<typename ImplT, typename... Args> | |
| void | emplace (Args &&...args) |
| Protected Attributes inherited from blender::VArrayCommon< T > | |
| AnyDerived< const VArrayImpl< T > > | impl_ |
Similar to VArray but references a virtual array that can be modified.
Definition at line 818 of file BLI_virtual_array.hh.
|
default |
Referenced by from(), from_container(), from_derived_span(), and from_span().
|
inline |
Definition at line 822 of file BLI_virtual_array.hh.
References T, and blender::VArrayCommon< T >::VArrayCommon().
|
inline |
Definition at line 824 of file BLI_virtual_array.hh.
References T, and blender::VArrayCommon< T >::VArrayCommon().
|
inlinestatic |
Construct a new virtual array for a custom VMutableArrayImpl.
Definition at line 832 of file BLI_virtual_array.hh.
References blender::VArrayCommon< T >::emplace(), and VMutableArray().
Referenced by from_container(), from_derived_span(), from_span(), and blender::bke::varray_for_mutable_deform_verts().
|
inlinestatic |
Construct a new virtual array for an existing container. Every container that lays out the elements in a plain array works. This takes ownership of the passed in container. If that is not desired, use from_span instead.
Definition at line 863 of file BLI_virtual_array.hh.
References from(), and VMutableArray().
Referenced by blender::tests::TEST_F().
|
inlinestatic |
Construct a new virtual array for an existing span with a mapping function. This does not take ownership of the span.
Definition at line 853 of file BLI_virtual_array.hh.
References from(), and VMutableArray().
Referenced by blender::bke::instance_position_varray_for_write(), and blender::tests::TEST_F().
|
inlinestatic |
Construct a new virtual array for an existing span. This does not take ownership of the span.
Definition at line 843 of file BLI_virtual_array.hh.
References from(), and VMutableArray().
Referenced by blender::fn::FieldEvaluator::add_with_destination(), blender::tests::TEST_F(), and blender::GVMutableArray::typed().
|
inline |
Get access to the internal span. This invokes undefined behavior if the is_span returned false.
Definition at line 888 of file BLI_virtual_array.hh.
References blender::BLI_assert(), blender::CommonVArrayInfo::data, blender::VArrayCommon< T >::is_span(), blender::MutableSpan< T >::MutableSpan(), and T.
Referenced by blender::tests::TEST_F().
|
inlinenoexcept |
Convert to a VArray by moving.
Definition at line 877 of file BLI_virtual_array.hh.
|
inline |
Convert to a VArray by copying.
Definition at line 869 of file BLI_virtual_array.hh.
|
inline |
Set the value at the given index.
Definition at line 898 of file BLI_virtual_array.hh.
References blender::BLI_assert(), blender::VArrayCommon< T >::size(), and T.
Referenced by blender::ed::greasepencil::add_armature_automatic_weights(), blender::ed::greasepencil::add_armature_envelope_weights(), blender::ed::sculpt_paint::greasepencil::WeightPaintOperation::apply_weight_to_point(), blender::ed::greasepencil::grease_pencil_weight_invert_exec(), blender::GVMutableArrayImpl_For_VMutableArray< T >::set_by_copy(), blender::GVMutableArrayImpl_For_VMutableArray< T >::set_by_move(), blender::GVMutableArrayImpl_For_VMutableArray< T >::set_by_relocate(), blender::tests::TEST_F(), and blender::tests::TEST_F().
|
inline |
Copy the values from the source span to all elements in the virtual array.
Definition at line 916 of file BLI_virtual_array.hh.
References blender::BLI_assert(), and blender::Span< T >::size().
Referenced by blender::GVMutableArrayImpl_For_VMutableArray< T >::set_all().
|
inline |
See #GVMutableArrayImpl::try_assign_GVMutableArray.
Definition at line 923 of file BLI_virtual_array.hh.
Referenced by blender::GVMutableArray::GVMutableArray().