|
Blender V5.0
|
#include <BLI_generic_virtual_array.hh>
Inherits blender::GVArrayCommon.
Public Member Functions | |
| GVMutableArray ()=default | |
#GVMutableArrayImpl | |
| void | fill (const void *value) |
| Public Member Functions inherited from blender::GVArrayCommon | |
| bool | may_have_ownership () const |
| IndexRange | index_range () const |
| void | materialize (void *dst) const |
| void | materialize (const IndexMask &mask, void *dst) const |
| void | materialize_to_uninitialized (void *dst) const |
| void | materialize_to_uninitialized (const IndexMask &mask, void *dst) const |
| void | materialize_compressed (const IndexMask &mask, void *dst) const |
| void | materialize_compressed_to_uninitialized (const IndexMask &mask, void *dst) const |
| bool | is_span () const |
| GSpan | get_internal_span () const |
| bool | is_single () const |
| void | get_internal_single (void *r_value) const |
| void | get_internal_single_to_uninitialized (void *r_value) const |
| const CPPType & | type () const |
| operator bool () const | |
| int64_t | size () const |
| bool | is_empty () const |
| template<typename T> | |
| bool | try_assign_VArray (VArray< T > &varray) const |
| CommonVArrayInfo | common_info () const |
| void | get (int64_t index, void *r_value) const |
| template<typename T> | |
| T | get (int64_t index) const |
| void | get_to_uninitialized (int64_t index, void *r_value) const |
#GVMutableArray | |
| GVMutableArray (const GVMutableArray &other) | |
| GVMutableArray (GVMutableArray &&other) noexcept | |
| GVMutableArray (GVMutableArrayImpl *impl) | |
| GVMutableArray (std::shared_ptr< GVMutableArrayImpl > impl) | |
| operator GVArray () const & | |
| operator GVArray () &&noexcept | |
| GVMutableArray & | operator= (const GVMutableArray &other) |
| GVMutableArray & | operator= (GVMutableArray &&other) noexcept |
| GMutableSpan | get_internal_span () const |
| void | set_all (const void *src) |
| GVMutableArrayImpl * | get_implementation () const |
| static GVMutableArray | from_span (GMutableSpan span) |
Inline methods for #GVMutableArray. | |
| template<typename T> | |
| GVMutableArray (const VMutableArray< T > &varray) | |
| template<typename T> | |
| VMutableArray< T > | typed () const |
| template<typename ImplT, typename... Args> | |
| static GVMutableArray | from (Args &&...args) |
Inline methods for #GVMutableArrayImpl. | |
| template<typename T> | |
| bool | try_assign_VMutableArray (VMutableArray< T > &varray) const |
| void | set_by_copy (int64_t index, const void *value) |
| void | set_by_move (int64_t index, void *value) |
| void | set_by_relocate (int64_t index, void *value) |
Additional Inherited Members | |
| Protected Types inherited from blender::GVArrayCommon | |
| using | Storage = Any<detail::GVArrayAnyExtraInfo, 40, 8> |
| Protected Member Functions inherited from blender::GVArrayCommon | |
| GVArrayCommon ()=default | |
| GVArrayCommon (const GVArrayCommon &other) | |
| GVArrayCommon (GVArrayCommon &&other) noexcept | |
| GVArrayCommon (const GVArrayImpl *impl) | |
| GVArrayCommon (std::shared_ptr< const GVArrayImpl > impl) | |
| ~GVArrayCommon () | |
| void | copy_from (const GVArrayCommon &other) |
| void | move_from (GVArrayCommon &&other) noexcept |
| const GVArrayImpl * | impl_from_storage () const |
| template<typename ImplT, typename... Args> | |
| void | emplace (Args &&...args) |
| Protected Attributes inherited from blender::GVArrayCommon | |
| const GVArrayImpl * | impl_ = nullptr |
| Storage | storage_ |
Generic version of VMutableArray.
Definition at line 214 of file BLI_generic_virtual_array.hh.
|
default |
Referenced by from(), from_span(), GVMutableArray(), GVMutableArray(), operator=(), and operator=().
|
default |
References GVMutableArray().
|
defaultnoexcept |
| blender::GVMutableArray::GVMutableArray | ( | GVMutableArrayImpl * | impl | ) |
Definition at line 770 of file generic_virtual_array.cc.
References blender::GVArrayCommon::GVArrayCommon().
| blender::GVMutableArray::GVMutableArray | ( | std::shared_ptr< GVMutableArrayImpl > | impl | ) |
Definition at line 772 of file generic_virtual_array.cc.
References blender::GVArrayCommon::GVArrayCommon().
|
inline |
Definition at line 904 of file BLI_generic_virtual_array.hh.
References blender::VArrayCommon< T >::common_info(), blender::CommonVArrayInfo::data, from(), from_span(), blender::CPPType::get(), blender::CommonVArrayInfo::may_have_ownership, blender::VArrayCommon< T >::size(), blender::CommonVArrayInfo::Span, blender::VMutableArray< T >::try_assign_GVMutableArray(), and blender::CommonVArrayInfo::type.
| void blender::GVMutableArray::fill | ( | const void * | value | ) |
Definition at line 104 of file generic_virtual_array.cc.
References blender::GVArrayCommon::common_info(), blender::CommonVArrayInfo::data, blender::CPPType::fill_assign_n(), i, set_by_copy(), blender::GVArrayCommon::size(), blender::CommonVArrayInfo::Span, blender::CommonVArrayInfo::type, and blender::GVArrayCommon::type().
Referenced by GVMutableArray().
|
inlinestatic |
Definition at line 896 of file BLI_generic_virtual_array.hh.
References blender::GVArrayCommon::emplace(), and GVMutableArray().
Referenced by from_span(), GVMutableArray(), blender::bke::DataTypeConversions::try_convert(), and typed().
|
static |
Definition at line 777 of file generic_virtual_array.cc.
References from(), and GVMutableArray().
Referenced by blender::fn::FieldEvaluator::add_with_destination(), blender::bke::attribute_to_writer(), GVMutableArray(), blender::bke::BuiltinCustomDataLayerProvider::try_get_for_write(), and blender::bke::CustomDataAttributeProvider::try_get_for_write().
| GVMutableArrayImpl * blender::GVMutableArray::get_implementation | ( | ) | const |
Definition at line 808 of file generic_virtual_array.cc.
Referenced by GVMutableArray().
| GMutableSpan blender::GVMutableArray::get_internal_span | ( | ) | const |
Definition at line 818 of file generic_virtual_array.cc.
References BLI_assert, blender::CommonVArrayInfo::data, blender::GVArrayCommon::impl_, blender::GVArrayCommon::is_span(), blender::CPPType::size, and blender::GVArrayCommon::type().
Referenced by blender::fn::evaluate_fields(), and GVMutableArray().
|
noexcept |
Definition at line 789 of file generic_virtual_array.cc.
References blender::GVArrayCommon::move_from().
| blender::GVMutableArray::operator GVArray | ( | ) | const & |
Definition at line 782 of file generic_virtual_array.cc.
References blender::GVArrayCommon::copy_from().
| GVMutableArray & blender::GVMutableArray::operator= | ( | const GVMutableArray & | other | ) |
Definition at line 796 of file generic_virtual_array.cc.
References blender::GVArrayCommon::copy_from(), and GVMutableArray().
|
noexcept |
Definition at line 802 of file generic_virtual_array.cc.
References GVMutableArray(), and blender::GVArrayCommon::move_from().
| void blender::GVMutableArray::set_all | ( | const void * | src | ) |
Copy the values from the source buffer to all elements in the virtual array.
Definition at line 813 of file generic_virtual_array.cc.
Referenced by GVMutableArray(), blender::nodes::store_computed_output_attributes(), and vertex_paint_from_weight().
|
inline |
Definition at line 652 of file BLI_generic_virtual_array.hh.
References BLI_assert, and blender::GVArrayCommon::size().
Referenced by blender::ed::greasepencil::copy_layer_and_frames_to_target_object(), fill(), GVMutableArray(), and transform_active_color_data().
|
inline |
Definition at line 659 of file BLI_generic_virtual_array.hh.
References BLI_assert, and blender::GVArrayCommon::size().
Referenced by GVMutableArray().
|
inline |
Definition at line 666 of file BLI_generic_virtual_array.hh.
References BLI_assert, and blender::GVArrayCommon::size().
Referenced by GVMutableArray().
|
inline |
Definition at line 674 of file BLI_generic_virtual_array.hh.
References BLI_assert, blender::GVArrayCommon::impl_, and T.
Referenced by GVMutableArray(), and typed().
|
inline |
Definition at line 921 of file BLI_generic_virtual_array.hh.
References BLI_assert, blender::GVArrayCommon::common_info(), blender::CommonVArrayInfo::data, from(), blender::VMutableArray< T >::from_span(), blender::CommonVArrayInfo::may_have_ownership, blender::CommonVArrayInfo::Span, T, try_assign_VMutableArray(), blender::CommonVArrayInfo::type, and blender::GVArrayCommon::type().
Referenced by BKE_mesh_mirror_apply_mirror_on_axis_for_modifier().