|
Blender V5.0
|
#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 Types inherited from blender::VArrayCommon< T > | |
| using | Storage = Any<blender::detail::VArrayAnyExtraInfo<T>, 24, 8> |
| Protected Member Functions inherited from blender::VArrayCommon< T > | |
| VArrayCommon ()=default | |
| VArrayCommon (const VArrayCommon &other) | |
| VArrayCommon (VArrayCommon &&other) noexcept | |
| VArrayCommon (const VArrayImpl< T > *impl) | |
| VArrayCommon (std::shared_ptr< const VArrayImpl< T > > impl) | |
| template<typename ImplT, typename... Args> | |
| void | emplace (Args &&...args) |
| void | copy_from (const VArrayCommon &other) |
| void | move_from (VArrayCommon &&other) noexcept |
| const VArrayImpl< T > * | impl_from_storage () const |
| Protected Attributes inherited from blender::VArrayCommon< T > | |
| const VArrayImpl< T > * | impl_ = nullptr |
| Storage | storage_ |
Similar to VArray but references a virtual array that can be modified.
Definition at line 965 of file BLI_virtual_array.hh.
|
default |
Referenced by from(), from_container(), from_derived_span(), from_span(), operator=(), operator=(), VMutableArray(), and VMutableArray().
|
default |
References VMutableArray().
|
defaultnoexcept |
References VMutableArray().
|
inline |
Definition at line 971 of file BLI_virtual_array.hh.
References T, and blender::VArrayCommon< T >::VArrayCommon().
|
inline |
Definition at line 973 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 981 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 1012 of file BLI_virtual_array.hh.
References from(), and VMutableArray().
Referenced by blender::tests::TEST().
|
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 1002 of file BLI_virtual_array.hh.
References from(), and VMutableArray().
Referenced by blender::bke::instance_position_varray_for_write(), and blender::tests::TEST().
|
inlinestatic |
Construct a new virtual array for an existing span. This does not take ownership of the span.
Definition at line 992 of file BLI_virtual_array.hh.
References from(), and VMutableArray().
Referenced by blender::fn::FieldEvaluator::add_with_destination(), blender::tests::TEST(), and blender::GVMutableArray::typed().
|
inline |
Get access to the internal span. This invokes undefined behavior if the is_span returned false.
Definition at line 1049 of file BLI_virtual_array.hh.
References BLI_assert, blender::CommonVArrayInfo::data, blender::VArrayCommon< T >::is_span(), and T.
Referenced by blender::tests::TEST().
|
inlinenoexcept |
Convert to a VArray by moving.
Definition at line 1026 of file BLI_virtual_array.hh.
|
inline |
Convert to a VArray by copying.
Definition at line 1018 of file BLI_virtual_array.hh.
|
inline |
Definition at line 1033 of file BLI_virtual_array.hh.
References blender::VArrayCommon< T >::copy_from(), and VMutableArray().
|
inlinenoexcept |
Definition at line 1039 of file BLI_virtual_array.hh.
References blender::VArrayCommon< T >::move_from(), and VMutableArray().
|
inline |
Set the value at the given index.
Definition at line 1059 of file BLI_virtual_array.hh.
References 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::tests::TEST(), and blender::tests::TEST().
|
inline |
Copy the values from the source span to all elements in the virtual array.
Definition at line 1069 of file BLI_virtual_array.hh.
References BLI_assert, and blender::Span< T >::size().
|
inline |
See #GVMutableArrayImpl::try_assign_GVMutableArray.
Definition at line 1076 of file BLI_virtual_array.hh.
Referenced by blender::GVMutableArray::GVMutableArray().