|
Blender V5.3
|
#include <BLI_generic_virtual_array.hh>
Inherits blender::GVArrayCommon.
Public Member Functions | |
| GVArray ()=default | |
| const GVArrayImpl * | get_implementation () const |
| 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 |
Inline methods for #GVArray. | |
| GVArray (const GVArrayImpl *impl) | |
| GVArray (std::shared_ptr< const GVArrayImpl > impl) | |
| GVArray (varray_tag::span, GSpan span) | |
| GVArray (varray_tag::single_ref, const CPPType &type, int64_t size, const void *value) | |
| template<typename T> | |
| GVArray (const VArray< T > &varray) | |
| template<typename T> | |
| GVArray (VArray< T > &&varray) | |
| template<typename T> | |
| VArray< T > | typed () const |
| template<typename ImplT, typename... Args> | |
| static GVArray | from (Args &&...args) |
| static GVArray | from_single (const CPPType &type, int64_t size, const void *value) |
| static GVArray | from_single_ref (const CPPType &type, int64_t size, const void *value) |
| static GVArray | from_single_default (const CPPType &type, int64_t size) |
| static GVArray | from_span (GSpan span) |
| static GVArray | from_empty (const CPPType &type) |
| template<typename GetToUninitFn> | |
| static GVArray | from_func (const CPPType &type, int64_t size, GetToUninitFn &&get_to_uninit) |
| static GVArray | from_std_func (const CPPType &type, int64_t size, std::function< void(int64_t index, void *r_value)> get_to_uninit) |
#GVArray | |
| GVArray (varray_tag::single, const CPPType &type, int64_t size, const void *value) | |
| GVArray | slice (IndexRange slice) const |
| static GVArray | from_garray (GArray<> array) |
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 VArray.
Definition at line 158 of file BLI_generic_virtual_array.hh.
|
default |
References from(), from_empty(), from_func(), from_garray(), from_single(), from_single_default(), from_single_ref(), from_span(), from_std_func(), GVArray(), blender::GVArrayCommon::size(), slice(), blender::GVArrayCommon::type(), and typed().
Referenced by blender::bke::AttributeAccessor::adapt_domain(), blender::bke::CurvesGeometry::adapt_domain(), blender::fn::multi_function::build::detail::execute_element_fn_as_multi_function(), blender::GVectorArray::extend(), from(), from_empty(), from_func(), from_garray(), from_single(), from_single_default(), from_single_ref(), from_span(), from_std_func(), GVArray(), GVArray(), and slice().
|
inline |
Definition at line 890 of file BLI_generic_virtual_array.hh.
References blender::GVArrayCommon::GVArrayCommon().
|
inline |
Definition at line 892 of file BLI_generic_virtual_array.hh.
References blender::GVArrayCommon::GVArrayCommon().
|
inline |
Definition at line 816 of file BLI_generic_virtual_array.hh.
References blender::GSpan::data(), blender::GVArrayCommon::emplace(), blender::GSpan::size(), and blender::GSpan::type().
|
inline |
Definition at line 824 of file BLI_generic_virtual_array.hh.
References blender::GVArrayCommon::emplace(), blender::GVArrayCommon::size(), and blender::GVArrayCommon::type().
| blender::GVArray::GVArray | ( | varray_tag::single | , |
| const CPPType & | type, | ||
| int64_t | size, | ||
| const void * | value ) |
Definition at line 626 of file generic_virtual_array.cc.
References blender::CPPType::alignment, blender::GVArrayCommon::emplace(), blender::CPPType::is_trivial, blender::CPPType::size, blender::GVArrayCommon::size(), and blender::GVArrayCommon::type().
Definition at line 864 of file BLI_generic_virtual_array.hh.
Definition at line 868 of file BLI_generic_virtual_array.hh.
References blender::CommonVArrayInfo::data, from(), from_single(), from_span(), blender::CPPType::get(), blender::GSpan::GSpan(), blender::CommonVArrayInfo::may_have_ownership, blender::CommonVArrayInfo::Single, blender::CommonVArrayInfo::Span, and blender::CommonVArrayInfo::type.
|
inlinestatic |
Definition at line 856 of file BLI_generic_virtual_array.hh.
References blender::GVArrayCommon::emplace(), and GVArray().
Referenced by from_func(), from_garray(), GVArray(), GVArray(), slice(), blender::bke::DataTypeConversions::try_convert(), and typed().
Definition at line 916 of file BLI_generic_virtual_array.hh.
References from_span(), blender::GSpan::GSpan(), GVArray(), and blender::GVArrayCommon::type().
Referenced by blender::fn::evaluate_fields(), and GVArray().
|
inlinestatic |
Definition at line 952 of file BLI_generic_virtual_array.hh.
References from(), GVArray(), blender::GVArrayCommon::size(), and blender::GVArrayCommon::type().
Referenced by from_std_func(), GVArray(), and blender::tests::TEST().
Definition at line 647 of file generic_virtual_array.cc.
References from(), and GVArray().
Referenced by blender::bke::adapt_curve_domain_curve_to_point(), blender::bke::adapt_mesh_domain_face_to_corner(), blender::ed::greasepencil::image_render::attribute_interpolate(), blender::bke::EvaluateAtIndexInput::get_varray_for_context(), blender::bke::EvaluateOnDomainInput::get_varray_for_context(), blender::nodes::node_geo_blur_attribute_cc::BlurAttributeFieldInput::get_varray_for_context(), and GVArray().
|
inlinestatic |
Definition at line 896 of file BLI_generic_virtual_array.hh.
References GVArray(), blender::GVArrayCommon::size(), and blender::GVArrayCommon::type().
Referenced by blender::bke::CurvesGeometry::adapt_domain(), blender::bke::adapt_mesh_attribute_domain(), blender::bke::get_varray_attribute(), blender::bke::AttributeFieldInput::get_varray_for_context(), blender::bke::EvaluateOnDomainInput::get_varray_for_context(), blender::nodes::node_geo_tool_selection_cc::SculptSelectionFieldInput::get_varray_for_context(), GVArray(), GVArray(), blender::bke::AttributeAccessor::lookup_or_default(), and slice().
Definition at line 906 of file BLI_generic_virtual_array.hh.
References blender::CPPType::default_value(), from_single_ref(), GVArray(), blender::GVArrayCommon::size(), and blender::GVArrayCommon::type().
Referenced by blender::fn::get_field_context_inputs(), blender::bke::EvaluateOnDomainInput::get_varray_for_context(), and GVArray().
|
inlinestatic |
Definition at line 901 of file BLI_generic_virtual_array.hh.
References GVArray(), blender::GVArrayCommon::size(), and blender::GVArrayCommon::type().
Referenced by blender::bke::attribute_to_reader(), blender::fn::evaluate_fields(), from_single_default(), GVArray(), blender::bke::LegacyMeshInterpolator::LegacyMeshInterpolator(), blender::bke::AttributeAccessor::lookup_or_default(), blender::geometry::mix_socket_values_same_type(), and blender::nodes::GList::varray().
Definition at line 911 of file BLI_generic_virtual_array.hh.
References GVArray().
Referenced by blender::ed::greasepencil::image_render::attribute_interpolate(), blender::bke::attribute_to_reader(), blender::bke::DataTypeConversions::convert_to_initialized_n(), blender::bke::Attribute::data_for_write(), blender::fn::evaluate_fields(), blender::GVectorArray::extend(), from_empty(), blender::array_utils::gather(), blender::bke::attribute_math::gather(), blender::bke::attribute_math::gather(), blender::bke::get_varray_attribute(), GVArray(), GVArray(), blender::geometry::interpolate_curves_with_samples(), blender::bke::LegacyMeshInterpolator::LegacyMeshInterpolator(), blender::bke::sample_corner_attributes(), blender::ed::sculpt_paint::select_grow::select_grow_modal(), slice(), and blender::nodes::GList::varray().
|
inlinestatic |
Definition at line 921 of file BLI_generic_virtual_array.hh.
References from_func(), GVArray(), blender::GVArrayCommon::size(), and blender::GVArrayCommon::type().
Referenced by GVArray().
|
inline |
Definition at line 192 of file BLI_generic_virtual_array.hh.
References blender::GVArrayCommon::impl_.
Referenced by blender::GVArrayImpl_For_SlicedGVArray::materialize(), blender::VArrayImpl_For_GVArray< T >::materialize(), blender::GVArrayImpl_For_SlicedGVArray::materialize_compressed(), and blender::VArrayImpl_For_GVArray< T >::materialize_compressed().
| GVArray blender::GVArray::slice | ( | IndexRange | slice | ) | const |
Definition at line 652 of file generic_virtual_array.cc.
References blender::GVArrayCommon::common_info(), blender::CommonVArrayInfo::data, from(), from_single(), from_span(), blender::GSpan::GSpan(), GVArray(), blender::CommonVArrayInfo::may_have_ownership, blender::CommonVArrayInfo::Single, blender::IndexRange::size(), slice(), blender::CommonVArrayInfo::Span, blender::CommonVArrayInfo::type, and blender::GVArrayCommon::type().
Referenced by blender::fn::multi_function::add_sliced_parameters(), GVArray(), blender::geometry::mix_socket_values_same_type(), slice(), and blender::nodes::node_geo_transfer_attributes_cc::transfer_attributes().
Definition at line 929 of file BLI_generic_virtual_array.hh.
References blender::BLI_assert(), blender::GVArrayCommon::common_info(), blender::CommonVArrayInfo::data, from(), blender::VArray< T >::from_single(), blender::VArray< T >::from_span(), blender::GVArrayCommon::impl_, blender::CommonVArrayInfo::may_have_ownership, blender::CommonVArrayInfo::Single, blender::CommonVArrayInfo::Span, T, blender::GVArrayCommon::try_assign_VArray(), and blender::CommonVArrayInfo::type.
Referenced by blender::bke::AttributeAccessor::adapt_domain(), blender::bke::CurvesGeometry::adapt_domain(), blender::ed::spreadsheet::apply_row_filter(), attr_create_generic(), attr_create_motion_corner_normals(), blender::nodes::node_geo_duplicate_elements_cc::copy_stable_id_curves(), blender::nodes::node_geo_duplicate_elements_cc::copy_stable_id_edges(), blender::nodes::node_geo_duplicate_elements_cc::copy_stable_id_faces(), blender::nodes::node_geo_duplicate_elements_cc::copy_stable_id_point(), blender::geometry::create_id_index_map(), blender::ed::greasepencil::image_render::draw_grease_pencil_strokes(), blender::ed::spreadsheet::ColumnValues::fit_column_values_width_px(), blender::nodes::node_fn_format_string_cc::format_with_fmt(), blender::geometry::gather_realize_tasks_for_instances(), blender::fn::FieldEvaluator::get_evaluated(), blender::bke::get_varray_attribute(), blender::nodes::node_geo_accumulate_field_cc::AccumulateFieldInput::get_varray_for_context(), blender::nodes::node_geo_accumulate_field_cc::TotalFieldInput::get_varray_for_context(), blender::nodes::node_geo_field_average_cc::FieldAverageInput::get_varray_for_context(), blender::nodes::node_geo_field_min_and_max_cc::FieldMinMaxInput::get_varray_for_context(), blender::nodes::node_geo_field_variance_cc::FieldVarianceInput::get_varray_for_context(), GVArray(), blender::nodes::node_geo_filter_list_cc::node_geo_exec(), blender::geometry::preprocess_curves(), blender::geometry::preprocess_meshes(), blender::geometry::preprocess_pointclouds(), blender::fn::multi_function::Params::readonly_single_input(), blender::bke::mesh_surface_sample::sample_corner_attribute(), blender::bke::mesh_surface_sample::sample_face_attribute(), blender::bke::mesh_surface_sample::sample_point_attribute(), blender::tests::TEST(), blender::bke::transform_custom_normal_attribute(), and blender::bke::GAttributeReader::typed().