|
Blender V5.3
|
#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 (GVMutableArrayImpl *impl) | |
| GVMutableArray (std::shared_ptr< GVMutableArrayImpl > impl) | |
| operator GVArray () const & | |
| operator GVArray () &&noexcept | |
| GMutableSpan | get_internal_span () const |
| void | set_all (const void *src) |
| 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) |
| GVMutableArrayImpl * | get_implementation () const |
Additional Inherited Members | |
| Protected Member Functions inherited from blender::GVArrayCommon | |
| GVArrayCommon ()=default | |
| GVArrayCommon (const GVArrayImpl *impl) | |
| GVArrayCommon (std::shared_ptr< const GVArrayImpl > impl) | |
| template<typename ImplT, typename... Args> | |
| void | emplace (Args &&...args) |
| Protected Attributes inherited from blender::GVArrayCommon | |
| AnyDerived< const GVArrayImpl, 40 > | impl_ |
Generic version of VMutableArray.
Definition at line 199 of file BLI_generic_virtual_array.hh.
|
default |
References fill(), from(), from_span(), get_implementation(), get_internal_span(), GVMutableArray(), set_all(), set_by_copy(), set_by_move(), set_by_relocate(), T, try_assign_VMutableArray(), and typed().
Referenced by blender::fn::FieldEvaluator::add_with_destination(), from(), from_span(), and GVMutableArray().
| blender::GVMutableArray::GVMutableArray | ( | GVMutableArrayImpl * | impl | ) |
Definition at line 672 of file generic_virtual_array.cc.
References blender::GVArrayCommon::GVArrayCommon().
| blender::GVMutableArray::GVMutableArray | ( | std::shared_ptr< GVMutableArrayImpl > | impl | ) |
Definition at line 674 of file generic_virtual_array.cc.
References blender::GVArrayCommon::GVArrayCommon().
|
inline |
Definition at line 973 of file BLI_generic_virtual_array.hh.
References blender::VArrayCommon< T >::common_info(), blender::CommonVArrayInfo::data, from(), from_span(), blender::CPPType::get(), blender::GMutableSpan::GMutableSpan(), 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(), blender::IndexRange::IndexRange(), set_by_copy(), blender::GVArrayCommon::size(), blender::CommonVArrayInfo::Span, blender::CommonVArrayInfo::type, and blender::GVArrayCommon::type().
Referenced by GVMutableArray().
|
inlinestatic |
Definition at line 965 of file BLI_generic_virtual_array.hh.
References blender::GVArrayCommon::emplace(), and GVMutableArray().
Referenced by from_span(), GVMutableArray(), GVMutableArray(), blender::bke::DataTypeConversions::try_convert(), and typed().
|
static |
Definition at line 679 of file generic_virtual_array.cc.
References from(), and GVMutableArray().
Referenced by blender::fn::FieldEvaluator::add_with_destination(), blender::bke::attribute_to_writer(), GVMutableArray(), and GVMutableArray().
|
inline |
Definition at line 711 of file BLI_generic_virtual_array.hh.
Referenced by GVMutableArray().
| GMutableSpan blender::GVMutableArray::get_internal_span | ( | ) | const |
Definition at line 703 of file generic_virtual_array.cc.
References blender::BLI_assert(), blender::CommonVArrayInfo::data, blender::GMutableSpan::GMutableSpan(), 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 691 of file generic_virtual_array.cc.
References blender::GVArrayCommon::GVArrayCommon().
| blender::GVMutableArray::operator GVArray | ( | ) | const & |
Definition at line 684 of file generic_virtual_array.cc.
References blender::GVArrayCommon::GVArrayCommon().
| 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 698 of file generic_virtual_array.cc.
Referenced by GVMutableArray(), and blender::vertex_paint_from_weight().
|
inline |
Definition at line 678 of file BLI_generic_virtual_array.hh.
References blender::BLI_assert(), and blender::GVArrayCommon::size().
Referenced by blender::ed::greasepencil::copy_layer_and_frames_to_target_object(), fill(), GVMutableArray(), and blender::transform_active_color_data().
|
inline |
Definition at line 685 of file BLI_generic_virtual_array.hh.
References blender::BLI_assert(), and blender::GVArrayCommon::size().
Referenced by GVMutableArray().
|
inline |
Definition at line 692 of file BLI_generic_virtual_array.hh.
References blender::BLI_assert(), and blender::GVArrayCommon::size().
Referenced by GVMutableArray().
|
inline |
Definition at line 700 of file BLI_generic_virtual_array.hh.
References blender::BLI_assert(), blender::GVArrayCommon::impl_, and T.
Referenced by GVMutableArray(), and typed().
|
inline |
Definition at line 990 of file BLI_generic_virtual_array.hh.
References blender::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(), and blender::CommonVArrayInfo::type.
Referenced by blender::BKE_mesh_mirror_apply_mirror_on_axis_for_modifier(), GVMutableArray(), and blender::bke::GAttributeWriter::typed().