|
Blender V4.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 (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 | ForSpan (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 | For (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 217 of file BLI_generic_virtual_array.hh.
|
default |
|
default |
|
defaultnoexcept |
| blender::GVMutableArray::GVMutableArray | ( | GVMutableArrayImpl * | impl | ) |
Definition at line 770 of file generic_virtual_array.cc.
| blender::GVMutableArray::GVMutableArray | ( | std::shared_ptr< GVMutableArrayImpl > | impl | ) |
Definition at line 772 of file generic_virtual_array.cc.
|
inline |
Definition at line 937 of file BLI_generic_virtual_array.hh.
References blender::VArrayCommon< T >::common_info(), blender::CommonVArrayInfo::data, For(), ForSpan(), 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 96 of file generic_virtual_array.cc.
References blender::GVArrayCommon::common_info(), blender::CommonVArrayInfo::data, blender::CPPType::fill_assign_n(), set_by_copy(), blender::GVArrayCommon::size(), blender::CommonVArrayInfo::Span, blender::CommonVArrayInfo::type, and blender::GVArrayCommon::type().
|
inlinestatic |
Definition at line 929 of file BLI_generic_virtual_array.hh.
References blender::GVArrayCommon::emplace().
Referenced by ForSpan(), GVMutableArray(), and blender::bke::DataTypeConversions::try_convert().
|
static |
Definition at line 777 of file generic_virtual_array.cc.
References For().
Referenced by blender::fn::FieldEvaluator::add_with_destination(), 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.
| GMutableSpan blender::GVMutableArray::get_internal_span | ( | ) | const |
Definition at line 818 of file generic_virtual_array.cc.
References BLI_assert, blender::GVArrayImpl::common_info(), blender::CommonVArrayInfo::data, blender::GVArrayCommon::impl_, blender::GVArrayCommon::is_span(), blender::CPPType::size(), and blender::GVArrayCommon::type().
Referenced by blender::fn::evaluate_fields().
|
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().
|
noexcept |
Definition at line 802 of file generic_virtual_array.cc.
| 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.
References blender::GVMutableArrayImpl::set_all().
Referenced by blender::GMutableVArraySpan::save(), blender::nodes::store_computed_output_attributes(), and vertex_paint_from_weight().
|
inline |
Definition at line 685 of file BLI_generic_virtual_array.hh.
References BLI_assert, blender::GVMutableArrayImpl::set_by_copy(), and blender::GVArrayCommon::size().
Referenced by fill(), and transform_active_color_data().
|
inline |
Definition at line 692 of file BLI_generic_virtual_array.hh.
References BLI_assert, blender::GVMutableArrayImpl::set_by_move(), and blender::GVArrayCommon::size().
|
inline |
Definition at line 699 of file BLI_generic_virtual_array.hh.
References BLI_assert, blender::GVMutableArrayImpl::set_by_relocate(), and blender::GVArrayCommon::size().
|
inline |
Definition at line 707 of file BLI_generic_virtual_array.hh.
References BLI_assert, blender::GVArrayCommon::impl_, blender::CPPType::is(), blender::GVMutableArrayImpl::try_assign_VMutableArray(), and blender::GVArrayImpl::type().
Referenced by typed().
|
inline |
Definition at line 954 of file BLI_generic_virtual_array.hh.
References BLI_assert, blender::GVArrayCommon::common_info(), blender::CommonVArrayInfo::data, blender::VMutableArray< T >::ForSpan(), blender::CommonVArrayInfo::may_have_ownership, blender::CommonVArrayInfo::Span, try_assign_VMutableArray(), blender::CommonVArrayInfo::type, and blender::GVArrayCommon::type().
Referenced by blender::bke::GAttributeWriter::typed().