|
Blender V5.3
|
#include <BLI_generic_span.hh>
Inherited by blender::GVArraySpan.
Public Member Functions | |
| GSpan ()=default | |
| GSpan (const CPPType *type, const void *buffer, int64_t size) | |
| GSpan (const CPPType &type, const void *buffer, int64_t size) | |
| GSpan (const CPPType &type) | |
| GSpan (const CPPType *type) | |
| template<typename T> | |
| GSpan (Span< T > array) | |
| template<typename T> | |
| GSpan (MutableSpan< T > array) | |
| const CPPType & | type () const |
| const CPPType * | type_ptr () const |
| bool | is_empty () const |
| int64_t | size () const |
| int64_t | size_in_bytes () const |
| const void * | data () const |
| const void * | operator[] (int64_t index) const |
| template<typename T> | |
| Span< T > | typed () const |
| GSpan | slice (const int64_t start, int64_t size) const |
| GSpan | slice (const IndexRange range) const |
| GSpan | drop_front (const int64_t n) const |
| GSpan | drop_back (const int64_t n) const |
| GSpan | take_front (const int64_t n) const |
| GSpan | take_back (const int64_t n) const |
Protected Attributes | |
| const CPPType * | type_ = nullptr |
| const void * | data_ = nullptr |
| int64_t | size_ = 0 |
A generic span. It behaves just like a Span<T>, but the type is only known at run-time.
Definition at line 19 of file BLI_generic_span.hh.
|
default |
Referenced by blender::nodes::add_list_to_params(), blender::bke::attribute_to_reader(), blender::AttrSingleValueChecker::AttrSingleValueChecker(), drop_back(), drop_front(), blender::nodes::node_geo_filter_list_cc::filter_list(), blender::compositor::Result::free(), blender::GVArray::from_empty(), blender::bke::Attribute::SingleData::from_value(), blender::GVArrayCommon::get_internal_span(), blender::bke::get_span_attribute(), GSpan(), GSpan(), GSpan(), blender::GVArray::GVArray(), blender::GVArraySpan::GVArraySpan(), blender::GVArraySpan::GVArraySpan(), blender::GArray< Allocator >::operator GSpan(), blender::GMutableSpan::operator GSpan(), blender::geometry::reorder_attribute_domain(), blender::reorder_attribute_domain(), blender::compositor::Result::share_data(), slice(), slice(), blender::GVArray::slice(), take_back(), take_front(), blender::draw::test_draw_curves_interpolate_position(), blender::nodes::GList::values(), and blender::nodes::GList::varray().
Definition at line 28 of file BLI_generic_span.hh.
References blender::BLI_assert(), data_, blender::CPPType::pointer_has_valid_alignment(), size(), size_, type(), and type_.
Definition at line 37 of file BLI_generic_span.hh.
|
inline |
Definition at line 39 of file BLI_generic_span.hh.
|
inline |
Definition at line 41 of file BLI_generic_span.hh.
|
inline |
|
inline |
Definition at line 81 of file BLI_generic_span.hh.
References data_.
Referenced by blender::ed::greasepencil::attributes_varrays_span_data_equal(), blender::bke::build_mesh_positions(), blender::ed::sculpt_paint::color::color_vert_get(), blender::bke::LegacyMeshInterpolator::copy(), blender::GMutableSpan::copy_from(), blender::CustomData_data_transfer(), blender::fn::multi_function::VariableState::ensure_is_mutable(), blender::geometry::fill_new_attribute(), blender::bke::gather_attributes(), blender::bke::compare_geometry::gather_component(), blender::nodes::node_geo_blur_attribute_cc::BlurAttributeFieldInput::get_varray_for_context(), GSpan(), GSpan(), blender::GVArray::GVArray(), blender::compositor::Result::is_allocated(), blender::ed::sculpt_paint::replace_attribute(), blender::compositor::Result::sample(), blender::bke::try_sharing_point_data(), blender::compositor::Result::upload_to_gpu(), blender::bke::validate_float_attribute(), blender::vertex_paint_from_weight(), and blender::render::Context::write_viewer_image().
Definition at line 119 of file BLI_generic_span.hh.
References blender::BLI_assert(), data_, GSpan(), size_, and type_.
Definition at line 112 of file BLI_generic_span.hh.
References blender::BLI_assert(), data_, GSpan(), POINTER_OFFSET, blender::CPPType::size, size_, and type_.
|
inline |
Definition at line 66 of file BLI_generic_span.hh.
References size_.
Referenced by blender::geometry::interpolate_curves_with_samples(), blender::tests::TEST_F(), blender::tests::TEST_F(), and blender::tests::TEST_F().
|
inline |
Definition at line 86 of file BLI_generic_span.hh.
References blender::BLI_assert(), data_, POINTER_OFFSET, blender::CPPType::size, size_, and type_.
|
inline |
Definition at line 71 of file BLI_generic_span.hh.
References size_.
Referenced by blender::fn::multi_function::ParamsBuilder::add_readonly_single_input(), blender::bke::DataTypeConversions::convert_to_initialized_n(), blender::GMutableSpan::copy_from(), GSpan(), GSpan(), GSpan(), GSpan(), blender::GVArray::GVArray(), blender::bke::CurvesGeometry::interpolate_to_evaluated(), slice(), blender::bke::compare_geometry::sort_domain_using_attributes(), blender::tests::TEST_F(), blender::tests::TEST_F(), and blender::nodes::node_geo_dual_mesh_cc::transfer_attributes().
|
inline |
Definition at line 76 of file BLI_generic_span.hh.
References blender::CPPType::size, size_, and type_.
Referenced by blender::bke::validate_float_attribute().
|
inline |
Definition at line 107 of file BLI_generic_span.hh.
References GSpan(), blender::IndexRange::size(), slice(), and blender::IndexRange::start().
Definition at line 99 of file BLI_generic_span.hh.
References blender::BLI_assert(), data_, GSpan(), POINTER_OFFSET, blender::CPPType::size, size(), size_, and type_.
Referenced by blender::array_utils::copy_group_to_group(), blender::geometry::duplicate_fillet_point_data(), blender::bke::CurvesGeometry::interpolate_to_evaluated(), blender::ed::curves::resize_curves(), slice(), and blender::geometry::subdivide_attribute_catmull_rom().
Definition at line 133 of file BLI_generic_span.hh.
References blender::BLI_assert(), data_, GSpan(), POINTER_OFFSET, blender::CPPType::size, size_, and type_.
Definition at line 126 of file BLI_generic_span.hh.
References blender::BLI_assert(), data_, GSpan(), size_, and type_.
|
inline |
Definition at line 55 of file BLI_generic_span.hh.
References blender::BLI_assert(), and type_.
Referenced by blender::fn::multi_function::ParamsBuilder::add_readonly_single_input(), blender::ed::greasepencil::image_render::attribute_interpolate(), blender::draw::pbvh::calc_generic_corner_attribute_grids(), blender::draw::pbvh::calc_generic_vert_attribute_grids(), blender::ed::sculpt_paint::color::color_corner_get(), blender::ed::sculpt_paint::color::color_vert_get(), blender::bke::DataTypeConversions::convert_to_initialized_n(), blender::bke::LegacyMeshInterpolator::copy(), blender::GMutableSpan::copy_from(), blender::bke::copy_profile_point_domain_attribute_to_mesh(), blender::geometry::curve_simplify(), blender::draw::pbvh::fill_generic_face_attribute_grids(), blender::bke::gather_attributes(), blender::ed::sculpt_paint::color::gather_colors(), blender::ed::sculpt_paint::color::gather_colors_vert(), blender::bke::attribute_math::gather_group_to_group(), blender::bke::attribute_math::gather_ranges_to_groups(), blender::bke::attribute_math::gather_to_groups(), blender::geometry::gaussian_blur_1D(), GSpan(), GSpan(), GSpan(), GSpan(), blender::GVArray::GVArray(), blender::GVArraySpan::GVArraySpan(), blender::ed::curves::has_anything_selected(), blender::geometry::construct::interpolate_new_corner_attribute_from_faces(), blender::bke::curves::bezier::interpolate_to_evaluated(), blender::bke::curves::catmull_rom::interpolate_to_evaluated(), blender::bke::curves::catmull_rom::interpolate_to_evaluated(), blender::bke::curves::nurbs::interpolate_to_evaluated(), blender::bke::attribute_math::mix_groups(), blender::nodes::node_geo_extrude_mesh_cc::mix_groups_or_default(), blender::geometry::prepare_attribute_fallbacks(), blender::geometry::sample_curve_attribute(), and blender::geometry::simplify_curve_attribute().
|
inline |
Definition at line 61 of file BLI_generic_span.hh.
References type_.
Referenced by blender::GVArraySpan::GVArraySpan().
Definition at line 92 of file BLI_generic_span.hh.
References blender::BLI_assert(), data_, blender::CPPType::is(), size_, blender::Span< T >::Span(), T, and type_.
Referenced by blender::bke::build_mesh_positions(), blender::geometry::curve_simplify(), blender::ed::curves::has_anything_selected(), blender::nodes::node_geo_interpolate_curves_cc::interpolate_curve_attributes(), blender::compositor::Result::load_pixel(), blender::compositor::Result::load_pixel_extended(), blender::compositor::Result::load_pixel_fallback(), blender::geometry::merge_points(), blender::nodes::node_geo_sort_list_cc::node_geo_exec(), blender::geometry::preprocess_meshes(), blender::geometry::sample_curve_attribute(), blender::geometry::simplify_curve_attribute(), blender::tests::TEST_F(), blender::tests::TEST_F(), blender::tests::TEST_F(), and blender::tests::TEST_F().
|
protected |
Definition at line 22 of file BLI_generic_span.hh.
Referenced by data(), drop_back(), drop_front(), GSpan(), operator[](), slice(), take_back(), take_front(), and typed().
|
protected |
Definition at line 23 of file BLI_generic_span.hh.
Referenced by drop_back(), drop_front(), GSpan(), blender::GVArraySpan::GVArraySpan(), blender::GVArraySpan::GVArraySpan(), is_empty(), operator[](), size(), size_in_bytes(), slice(), take_back(), take_front(), typed(), and blender::GVArraySpan::~GVArraySpan().
Definition at line 21 of file BLI_generic_span.hh.
Referenced by drop_back(), drop_front(), GSpan(), GSpan(), GSpan(), operator[](), size_in_bytes(), slice(), take_back(), take_front(), type(), type_ptr(), typed(), and blender::GVArraySpan::~GVArraySpan().