|
Blender V4.5
|
#include <BLI_array.hh>
Public Types | |
| using | value_type = T |
| using | pointer = T * |
| using | const_pointer = const T * |
| using | reference = T & |
| using | const_reference = const T & |
| using | iterator = T * |
| using | const_iterator = const T * |
| using | size_type = int64_t |
Public Member Functions | |
| Array (Allocator allocator={}) noexcept | |
| Array (NoExceptConstructor, Allocator allocator={}) noexcept | |
| template<typename U, BLI_ENABLE_IF((std::is_convertible_v< U, T >))> | |
| Array (Span< U > values, Allocator allocator={}) | |
| template<typename U, BLI_ENABLE_IF((std::is_convertible_v< U, T >))> | |
| Array (const std::initializer_list< U > &values, Allocator allocator={}) | |
| Array (const std::initializer_list< T > &values, Allocator allocator={}) | |
| Array (int64_t size, Allocator allocator={}) | |
| Array (int64_t size, const T &value, Allocator allocator={}) | |
| Array (int64_t size, NoInitialization, Allocator allocator={}) | |
| Array (const Array &other) | |
| Array (Array &&other) noexcept(std::is_nothrow_move_constructible_v< T >) | |
| ~Array () | |
| Array & | operator= (const Array &other) |
| Array & | operator= (Array &&other) noexcept(std::is_nothrow_move_constructible_v< T >) |
| T & | operator[] (int64_t index) |
| const T & | operator[] (int64_t index) const |
| operator Span< T > () const | |
| operator MutableSpan< T > () | |
| template<typename U, BLI_ENABLE_IF((is_span_convertible_pointer_v< T, U >))> | |
| operator Span< U > () const | |
| template<typename U, BLI_ENABLE_IF((is_span_convertible_pointer_v< T, U >))> | |
| operator MutableSpan< U > () | |
| Span< T > | as_span () const |
| MutableSpan< T > | as_mutable_span () |
| int64_t | size () const |
| bool | is_empty () const |
| void | fill (const T &value) const |
| const T & | first () const |
| T & | first () |
| const T & | last (const int64_t n=0) const |
| T & | last (const int64_t n=0) |
| const T * | data () const |
| T * | data () |
| const T * | begin () const |
| const T * | end () const |
| T * | begin () |
| T * | end () |
| std::reverse_iterator< T * > | rbegin () |
| std::reverse_iterator< T * > | rend () |
| std::reverse_iterator< const T * > | rbegin () const |
| std::reverse_iterator< const T * > | rend () const |
| IndexRange | index_range () const |
| void | clear_without_destruct () |
| Allocator & | allocator () |
| const Allocator & | allocator () const |
| void | reinitialize (const int64_t new_size) |
Static Public Member Functions | |
| static int64_t | inline_buffer_capacity () |
Friends | |
| bool | operator== (const Array &a, const Array &b) |
| bool | operator!= (const Array &a, const Array &b) |
| T | The type of the values stored in the array. |
| InlineBufferCapacity | The number of values that can be stored in the array, without doing a heap allocation. |
| Allocator | The allocator used by this array. Should rarely be changed, except when you don't want that MEM_* functions are used internally. |
Definition at line 50 of file BLI_array.hh.
| using blender::Array< T, InlineBufferCapacity, Allocator >::const_iterator = const T * |
Definition at line 58 of file BLI_array.hh.
| using blender::Array< T, InlineBufferCapacity, Allocator >::const_pointer = const T * |
Definition at line 54 of file BLI_array.hh.
| using blender::Array< T, InlineBufferCapacity, Allocator >::const_reference = const T & |
Definition at line 56 of file BLI_array.hh.
| using blender::Array< T, InlineBufferCapacity, Allocator >::iterator = T * |
Definition at line 57 of file BLI_array.hh.
| using blender::Array< T, InlineBufferCapacity, Allocator >::pointer = T * |
Definition at line 53 of file BLI_array.hh.
| using blender::Array< T, InlineBufferCapacity, Allocator >::reference = T & |
Definition at line 55 of file BLI_array.hh.
| using blender::Array< T, InlineBufferCapacity, Allocator >::size_type = int64_t |
Definition at line 59 of file BLI_array.hh.
| using blender::Array< T, InlineBufferCapacity, Allocator >::value_type = T |
Definition at line 52 of file BLI_array.hh.
|
inlinenoexcept |
By default an empty array is created.
Definition at line 78 of file BLI_array.hh.
|
inlinenoexcept |
Definition at line 84 of file BLI_array.hh.
|
inline |
Create a new array that contains copies of all values.
Definition at line 90 of file BLI_array.hh.
|
inline |
Create a new array that contains copies of all values.
Definition at line 102 of file BLI_array.hh.
|
inline |
Definition at line 107 of file BLI_array.hh.
|
inlineexplicit |
Create a new array with the given size. All values will be default constructed. For trivial types like int, default construction does nothing.
We might want another version of this in the future, that does not do default construction even for non-trivial types. This should not be the default though, because one can easily mess up when dealing with uninitialized memory.
Definition at line 120 of file BLI_array.hh.
|
inline |
Create a new array with the given size. All values will be initialized by copying the given default.
Definition at line 131 of file BLI_array.hh.
|
inline |
Create a new array with uninitialized elements. The caller is responsible for constructing the elements. Moving, copying or destructing an Array with uninitialized elements invokes undefined behavior.
This should be used very rarely. Note, that the normal size-constructor also does not initialize the elements when T is trivially constructible. Therefore, it only makes sense to use this with non trivially constructible types.
Usage: Array<std::string> my_strings(10, NoInitialization());
Definition at line 152 of file BLI_array.hh.
|
inline |
Definition at line 160 of file BLI_array.hh.
|
inlinenoexcept |
Definition at line 162 of file BLI_array.hh.
|
inline |
Definition at line 180 of file BLI_array.hh.
|
inline |
Access the allocator used by this array.
Definition at line 376 of file BLI_array.hh.
|
inline |
Definition at line 380 of file BLI_array.hh.
|
inline |
Definition at line 237 of file BLI_array.hh.
Referenced by blender::nodes::node_geo_duplicate_elements_cc::accumulate_counts_to_offsets(), blender::ed::sculpt_paint::greasepencil::PaintOperationExecutor::active_smoothing(), blender::ed::greasepencil::add_armature_automatic_weights(), blender::ed::greasepencil::add_armature_envelope_weights(), blender::bke::Instances::almost_unique_ids(), blender::bke::CurvesGeometry::bounds_min_max(), blender::build_drawing(), blender::geometry::build_point_to_sample_map(), blender::nodes::node_geo_extrude_mesh_cc::build_vert_to_edge_map(), blender::nodes::node_geo_blur_attribute_cc::build_vert_to_vert_by_edge_map(), blender::nodes::node_geo_distribute_points_on_faces_cc::calc_full_density_factors_with_selection(), blender::geometry::calc_new_edges(), blender::geometry::deduplication::calc_unselected_faces(), blender::bke::curves::nurbs::calculate_basis_for_point(), blender::nodes::node_geo_uv_pack_islands_cc::construct_uv_gvarray(), blender::create_envelope_strokes(), blender::geometry::create_point_to_vert_map(), blender::ed::transform::curves::curve_populate_trans_data_structs(), blender::nodes::node_geo_points_to_curves_cc::curves_from_points(), blender::deform_drawing(), blender::ed::sculpt_paint::face_set::duplicate_face_sets(), blender::nodes::execute_geometry_nodes_on_geometry(), blender::geometry::extend_curves(), blender::io::grease_pencil::extend_curves_geometry(), blender::draw::extract_points_bm(), blender::draw::extract_vert_normals(), blender::draw::extract_vert_normals_mesh(), blender::nodes::node_geo_extrude_mesh_cc::extrude_individual_mesh_faces(), blender::ed::curves::extrude_knots(), blender::nodes::node_geo_extrude_mesh_cc::extrude_mesh_vertices(), blender::geometry::fit_poly_to_bezier_curves(), blender::nodes::node_geo_scale_elements_cc::from_indices_large_groups(), blender::nodes::node_geo_scale_elements_cc::gather_edge_islands(), blender::nodes::node_geo_scale_elements_cc::gather_face_islands(), blender::nodes::node_geo_scale_elements_cc::gather_groups(), blender::ed::greasepencil::get_reordered_indices(), blender::nodes::node_geo_curve_topology_points_of_curve_cc::PointsOfCurveInput::get_varray_for_context(), blender::nodes::node_geo_mesh_topology_corners_of_edge_cc::CornersOfEdgeInput::get_varray_for_context(), blender::nodes::node_geo_mesh_topology_corners_of_face_cc::CornersOfFaceInput::get_varray_for_context(), blender::nodes::node_geo_mesh_topology_corners_of_vertex_cc::CornersOfVertInput::get_varray_for_context(), blender::nodes::node_geo_mesh_topology_edges_of_vertex_cc::EdgesOfVertInput::get_varray_for_context(), blender::ed::sculpt_paint::pose::grow_pose_factor(), blender::ed::sculpt_paint::greasepencil::interpolate_between_curves(), blender::geometry::interpolate_curves(), blender::geometry::interpolate_curves_with_samples(), blender::bke::mesh_calc_edges(), blender::geometry::mesh_edges_to_curves_convert(), blender::nodes::node_geo_merge_by_distance_cc::mesh_merge_by_distance_connected(), blender::draw::mesh_render_data_faces_sorted_build(), blender::geometry::mesh_triangulate(), meshdeformModifier_do(), blender::nodes::node_geo_volume_cube_cc::node_geo_exec(), blender::geometry::offsets_to_map(), blender::geometry::remove_points_and_split(), blender::geometry::resample_to_uniform(), blender::ed::sculpt_paint::greasepencil::sample_curve_2d(), blender::ed::sculpt_paint::mask::sculpt_mask_filter_exec(), blender::ed::greasepencil::set_start_point(), blender::geometry::simplify_curve_attribute(), blender::ed::sculpt_paint::greasepencil::simplify_stroke(), blender::geometry::smooth_curve_positions(), blender::bke::compare_geometry::sort_curves(), blender::nodes::node_geo_sort_elements_cc::sorted_indices(), blender::ed::sculpt_paint::expand::spherical_falloff_create(), blender::bke::tests::TEST(), blender::fn::multi_function::tests::TEST(), blender::fn::multi_function::tests::TEST(), blender::fn::multi_function::tests::TEST(), blender::fn::multi_function::tests::TEST(), blender::fn::multi_function::tests::TEST(), blender::fn::multi_function::tests::TEST(), blender::fn::tests::TEST(), blender::fn::tests::TEST(), blender::fn::tests::TEST(), blender::bke::bake::try_load_grease_pencil(), blender::ed::sculpt_paint::boundary::twist_data_init_grids(), and blender::ed::sculpt_paint::boundary::twist_data_init_mesh().
|
inline |
Definition at line 232 of file BLI_array.hh.
Referenced by BKE_editmesh_vert_coords_when_deformed(), blender::bke::CurvesGeometry::bounds_min_max(), blender::ed::sculpt_paint::greasepencil::brush_point_influence_mask(), blender::geometry::deduplication::build_vert_to_tri_map(), blender::bke::curves::nurbs::calculate_basis_for_point(), blender::ed::transform::curves::curve_populate_trans_data_structs(), blender::bke::curves_copy_point_selection(), blender::geometry::debug_randomize_curve_order(), blender::geometry::debug_randomize_face_order(), blender::deform_drawing_as_envelope(), blender::geometry::edges_to_curve_point_indices(), blender::nodes::node_geo_index_switch_cc::LazyFunctionForIndexSwitchNode::execute_field(), blender::nodes::node_geo_menu_switch_cc::LazyFunctionForMenuSwitchNode::execute_field(), blender::geometry::execute_instances_tasks(), blender::draw::extract_edituv_stretch_area(), blender::draw::extract_lines_mesh(), blender::draw::extract_vert_normals(), blender::draw::extract_vert_normals_mesh(), blender::ed::curves::extrude_curves(), blender::geometry::fillet_curves(), blender::nodes::node_geo_scale_elements_cc::from_indices_large_groups(), blender::bke::curves::nurbs::gather_custom_knots(), blender::nodes::node_geo_scale_elements_cc::gather_edge_islands(), blender::nodes::node_geo_scale_elements_cc::gather_face_islands(), blender::bke::mesh::gather_groups(), blender::nodes::node_geo_scale_elements_cc::gather_groups(), blender::generate_curves(), blender::nodes::node_geo_bake_cc::LazyFunctionForBakeNode::get_bake_state_from_inputs(), blender::nodes::node_geo_simulation_cc::sim_output_node::LazyFunctionForSimulationOutputNode::get_bake_state_from_inputs(), blender::nodes::node_geo_input_instance_bounds_cc::InstanceBoundsField::get_varray_for_context(), blender::ed::greasepencil::grease_pencil_dissolve_exec(), blender::ed::sculpt_paint::grease_pencil_erase_lasso_exec(), blender::ed::sculpt_paint::greasepencil::EraseOperationExecutor::hard_eraser(), blender::nodes::LazyFunctionForEvaluateClosureNode::initialize_execution_graph(), blender::ed::sculpt_paint::greasepencil::interpolate_between_curves(), blender::geometry::interpolate_curves_with_samples(), blender::geometry::join_instances(), blender::draw::mesh_render_data_loose_edges_bm(), blender::draw::mesh_render_data_loose_verts_bm(), blender::geometry::mesh_triangulate(), blender::modify_curves(), blender::nodes::node_geo_scale_elements_cc::node_geo_exec(), blender::ed::sculpt_paint::greasepencil::VertexAverageOperation::on_stroke_extended(), blender::ed::sculpt_paint::greasepencil::VertexPaintOperation::on_stroke_extended(), blender::ed::sculpt_paint::greasepencil::VertexReplaceOperation::on_stroke_extended(), blender::Array< Slot, LoadFactor::compute_total_slots(InlineBufferCapacity, LOAD_FACTOR), Allocator >::operator==, blender::nodes::node_geo_simulation_cc::sim_input_node::LazyFunctionForSimulationInputNode::pass_through(), blender::geometry::remove_points_and_split(), blender::bke::Instances::remove_unused_references(), blender::reorder_strokes(), blender::geometry::resample_to_uniform(), blender::ed::curves::retrieve_selected_curves(), blender::ed::sculpt_paint::select_grow::select_grow_update(), blender::ed::sculpt_paint::greasepencil::EraseOperationExecutor::soft_eraser(), blender::bke::compare_geometry::sort_curves(), blender::bke::compare_geometry::sort_edges(), blender::bke::compare_geometry::sort_faces_based_on_corners(), blender::nodes::node_geo_sort_elements_cc::sorted_indices(), blender::geometry::split_edges(), blender::io::obj::OBJMesh::store_normal_coords_and_indices(), blender::ed::greasepencil::subdivide_last_segement(), blender::bke::greasepencil::Drawing::tag_topology_changed(), blender::bke::tests::TEST(), blender::ed::curves::tests::TEST(), blender::ed::curves::tests::TEST(), blender::ed::curves::tests::TEST(), blender::ed::curves::tests::TEST(), blender::ed::curves::tests::TEST(), blender::ed::curves::tests::TEST(), blender::ed::curves::tests::TEST(), blender::ed::curves::tests::TEST(), blender::ed::curves::tests::TEST(), blender::fn::multi_function::tests::TEST(), blender::fn::multi_function::tests::TEST(), blender::fn::multi_function::tests::TEST(), blender::fn::multi_function::tests::TEST(), blender::length_parameterize::tests::TEST(), blender::length_parameterize::tests::TEST(), blender::length_parameterize::tests::TEST(), blender::length_parameterize::tests::TEST(), blender::length_parameterize::tests::TEST(), blender::length_parameterize::tests::TEST(), blender::length_parameterize::tests::TEST(), blender::length_parameterize::tests::TEST(), blender::length_parameterize::tests::TEST(), and blender::tests::TEST().
|
inline |
Definition at line 319 of file BLI_array.hh.
|
inline |
Definition at line 310 of file BLI_array.hh.
Referenced by blender::ed::object::apply_grease_pencil_for_modifier_all_keyframes(), blender::nodes::node_geo_curve_topology_points_of_curve_cc::PointsOfCurveInput::get_varray_for_context(), blender::nodes::node_geo_mesh_topology_corners_of_edge_cc::CornersOfEdgeInput::get_varray_for_context(), blender::nodes::node_geo_mesh_topology_corners_of_face_cc::CornersOfFaceInput::get_varray_for_context(), blender::nodes::node_geo_mesh_topology_corners_of_vertex_cc::CornersOfVertInput::get_varray_for_context(), blender::nodes::node_geo_mesh_topology_edges_of_vertex_cc::EdgesOfVertInput::get_varray_for_context(), blender::meshintersect::initial_triangulation(), blender::ed::sculpt_paint::greasepencil::interpolate_between_curves(), blender::ed::greasepencil::merge_layers(), blender::nodes::node_geo_attribute_statistic_cc::node_geo_exec(), blender::geometry::pack_islands_scale_margin(), blender::Array< Slot, LoadFactor::compute_total_slots(InlineBufferCapacity, LOAD_FACTOR), Allocator >::rend(), blender::Array< Slot, LoadFactor::compute_total_slots(InlineBufferCapacity, LOAD_FACTOR), Allocator >::rend(), blender::reorder_strokes(), blender::ed::sculpt_paint::greasepencil::EraseOperationExecutor::soft_eraser(), and blender::ed::space_node::tree_draw_order_update().
|
inline |
Sets the size to zero. This should only be used when you have manually destructed all elements in the array beforehand. Use with care.
Definition at line 368 of file BLI_array.hh.
|
inline |
Definition at line 305 of file BLI_array.hh.
|
inline |
Get a pointer to the beginning of the array.
Definition at line 301 of file BLI_array.hh.
Referenced by blf_glyph_cache_add_svg(), blf_svg_icon_bitmap(), BLI_uniquename_cb(), bm_face_create_from_mpoly(), BM_face_uv_calc_cross(), BM_face_uv_point_inside_test(), BMD_mesh_intersection(), BPy_BoolVectorProperty(), BPy_FloatVectorProperty(), BPy_IntVectorProperty(), blender::nodes::node_composite_movieclip_cc::MovieClipOperation::compute_alpha(), construct_param_handle_face_add(), blender::nodes::node_geo_uv_pack_islands_cc::construct_uv_gvarray(), blender::nodes::node_geo_uv_unwrap_cc::construct_uv_gvarray(), convexhull_2d_as_array(), blender::geometry::create_merged_mesh(), blender::ed::greasepencil::curve_merge_by_distance(), blender::string_search::damerau_levenshtein_distance(), deformVert(), blender::seq::do_glow_effect_byte(), blender::ed::vse::draw_strip_thumbnails(), blender::seq::draw_text_outline(), blender::seq::draw_text_shadow(), EDBM_verts_mirror_get_face(), blender::ed::sculpt_paint::face_set::edit_fairing(), blender::nodes::node_composite_planetrackdeform_cc::PlaneTrackDeformOperation::execute_gpu(), blender::bke::mesh::face_area_calc(), file_seek(), blender::ed::sculpt_paint::trim::generate_geometry(), blender::index_mask::get_static_index_mask_for_min_size(), handle_layer_buttons(), image_load_image_file(), image_load_movie_file(), blender::gpu::init_device_list(), blender::ed::sculpt_paint::is_point_inside_lasso(), blender::gpu::VKBackend::is_supported(), blender::bke::subdiv::loop_interpolation_init(), blender::geometry::mesh_merge_by_distance_all(), blender::geometry::mesh_merge_by_distance_connected(), mesh_separate_loose(), mesh_uv_reset_bmface(), mesh_uv_reset_mface(), meshdeform_ray_tree_intersect(), meshdeformModifier_do(), blender::gpu::missing_capabilities_get(), modify_mesh(), blender::nodes::node_geo_volume_cube_cc::node_geo_exec(), blender::nodes::node_shader_tex_sky_cc::node_shader_gpu_tex_sky(), normalEditModifier_do_directional(), normalEditModifier_do_radial(), blender::ed::object::object_origin_set_exec(), operator_search_update_fn(), blender::io::obj::OBJParser::parse(), blender::bke::pbvh::pbvh_bmesh_edge_loops(), blender::geometry::point_merge_by_distance(), blender::geometry::poly_find_doubles(), blender::io::stl::read_stl_binary(), RNA_property_boolean_get_array_at_most(), RNA_property_boolean_set_array_at_most(), RNA_property_float_get_array_at_most(), RNA_property_float_set_array_at_most(), RNA_property_int_get_array_at_most(), RNA_property_int_set_array_at_most(), blender::ed::transform::UVGroups::sd_array_create_and_init(), blender::ed::transform::UVGroups::sd_array_create_and_init_edge(), blender::bke::shrinkwrap::shrinkwrap_build_boundary_data(), blender::ed::object::sorted_selected_editable_objects(), blender::tests::TEST(), blender::tests::TEST(), TEST(), blender::ed::transform::transform_mesh_edge_slide_data_create(), ui_but_copy_numeric_array(), ui_but_paste_numeric_array(), ui_item_enum_expand_tabs(), ui_layer_but_cb(), ui_litem_layout_grid_flow(), UI_svg_icon_bitmap(), uv_cylinder_project(), uv_sphere_project(), blender::bke::subdiv::vertex_interpolation_init(), blender::ed::object::vgroup_array_copy(), and blender::ed::object::vgroup_smooth_subset().
|
inline |
Definition at line 323 of file BLI_array.hh.
|
inline |
Definition at line 314 of file BLI_array.hh.
Referenced by blender::ed::object::apply_grease_pencil_for_modifier_all_keyframes(), blender::nodes::node_geo_curve_topology_points_of_curve_cc::PointsOfCurveInput::get_varray_for_context(), blender::nodes::node_geo_mesh_topology_corners_of_edge_cc::CornersOfEdgeInput::get_varray_for_context(), blender::nodes::node_geo_mesh_topology_corners_of_face_cc::CornersOfFaceInput::get_varray_for_context(), blender::nodes::node_geo_mesh_topology_corners_of_vertex_cc::CornersOfVertInput::get_varray_for_context(), blender::nodes::node_geo_mesh_topology_edges_of_vertex_cc::EdgesOfVertInput::get_varray_for_context(), blender::meshintersect::initial_triangulation(), blender::ed::sculpt_paint::greasepencil::interpolate_between_curves(), blender::ed::greasepencil::merge_layers(), blender::nodes::node_geo_attribute_statistic_cc::node_geo_exec(), blender::geometry::pack_islands_scale_margin(), blender::Array< Slot, LoadFactor::compute_total_slots(InlineBufferCapacity, LOAD_FACTOR), Allocator >::rbegin(), blender::Array< Slot, LoadFactor::compute_total_slots(InlineBufferCapacity, LOAD_FACTOR), Allocator >::rbegin(), blender::reorder_strokes(), and blender::ed::space_node::tree_draw_order_update().
|
inline |
Copies the given value to every element in the array.
Definition at line 261 of file BLI_array.hh.
Referenced by blender::geometry::add_curves_on_mesh(), BKE_crazyspace_build_sculpt(), BKE_crazyspace_get_first_deform_matrices_editbmesh(), BKE_sculpt_get_first_deform_matrices(), blender::draw::calc_face_tri_starts_bmesh(), blender::draw::calc_face_tri_starts_mesh(), blender::ed::transform::curves::curve_populate_trans_data_structs(), blender::deform_drawing(), handle_layer_buttons(), blender::ed::sculpt_paint::greasepencil::interpolate_between_curves(), blender::geometry::point_merge_by_distance(), blender::bke::Instances::reference_user_counts(), blender::geometry::subdivide_curves(), blender::geometry::toposort_connected_curves(), ui_layer_but_cb(), and blender::ed::object::vgroup_smooth_subset().
|
inline |
Definition at line 275 of file BLI_array.hh.
|
inline |
Return a reference to the first element in the array. This invokes undefined behavior when the array is empty.
Definition at line 270 of file BLI_array.hh.
Referenced by blender::io::obj::fixup_invalid_face(), blender::nodes::node_geo_attribute_statistic_cc::node_geo_exec(), blender::ed::curves::separate_points(), blender::nodes::node_geo_dual_mesh_cc::sort_vertex_faces(), blender::ed::curves::split_points(), and blender::geometry::uv_parametrizer_face_add().
|
inline |
Get an index range containing all valid indices for this array.
Definition at line 349 of file BLI_array.hh.
Referenced by blender::ed::greasepencil::add_armature_automatic_weights(), blender::ed::greasepencil::add_armature_envelope_weights(), blender::geometry::add_curves_on_mesh(), blender::ed::greasepencil::add_materials_to_map(), blender::ed::greasepencil::apply_eval_grease_pencil_data(), blender::bm_face_loop_table_build(), blender::nodes::node_geo_extrude_mesh_cc::build_vert_to_edge_map(), blender::geometry::calc_position_with_interpolation(), blender::geometry::calc_radius_with_interpolation(), blender::nodes::node_geo_curve_spline_parameter_cc::calculate_curve_parameters(), blender::array_utils::compute_sum(), blender::ed::greasepencil::create_curves_outline(), blender::ed::transform::curves::curve_populate_trans_data_structs(), blender::deform_drawing(), blender::nodes::evaluate_closure_eagerly(), blender::nodes::execute_geometry_nodes_on_geometry(), blender::draw::extract_weights_mesh(), blender::ed::sculpt_paint::greasepencil::GrabOperation::foreach_grabbed_drawing(), blender::ed::sculpt_paint::trim::generate_geometry(), blender::render::texturemargin::generate_margin(), blender::modifier::greasepencil::get_influence_vertex_weights(), blender::ed::greasepencil::get_reordered_indices(), blender::nodes::node_geo_input_shortest_edge_paths_cc::ShortestEdgePathsCostFieldInput::get_varray_for_context(), blender::nodes::node_geo_input_shortest_edge_paths_cc::ShortestEdgePathsNextVertFieldInput::get_varray_for_context(), blender::nodes::node_geo_mesh_face_group_boundaries_cc::BoundaryFieldInput::get_varray_for_context(), blender::io::csv::import_csv_as_pointcloud(), blender::ed::sculpt_paint::gesture::init_from_lasso(), blender::nodes::LazyFunctionForEvaluateClosureNode::initialize_execution_graph(), blender::geometry::merge_customdata_all(), blender::ed::greasepencil::merge_layers(), blender::bke::mesh_calc_edges(), blender::draw::mesh_render_data_mat_tri_len_build(), blender::bke::bake::move_socket_values_to_bake_items(), blender::ed::space_node::node_group_make_wrapper(), blender::noise_table(), blender::ed::object::object_origin_set_exec(), blender::ed::sculpt_paint::greasepencil::AverageWeightPaintOperation::on_stroke_begin(), blender::ed::sculpt_paint::greasepencil::BlurWeightPaintOperation::on_stroke_begin(), blender::ed::sculpt_paint::greasepencil::DrawWeightPaintOperation::on_stroke_begin(), blender::ed::sculpt_paint::greasepencil::SmearWeightPaintOperation::on_stroke_begin(), blender::bke::pbvh::pbvh_bmesh_split_edge(), blender::geometry::sample_curve_padded(), blender::ed::curves::separate_exec(), blender::ed::pointcloud::separate_exec(), blender::bke::tests::TEST(), blender::ed::curves::tests::TEST(), blender::length_parameterize::tests::TEST(), blender::length_parameterize::tests::TEST(), blender::length_parameterize::tests::TEST(), blender::length_parameterize::tests::TEST(), blender::length_parameterize::tests::TEST(), blender::length_parameterize::tests::TEST(), blender::length_parameterize::tests::TEST(), track_mask_gpencil_layer_rasterize(), blender::ed::transform::transform_mesh_edge_slide_data_create(), blender::ed::transform::transform_mesh_uv_edge_slide_data_create(), blender::tests::transform_normals_test(), blender::ed::space_node::tree_draw_order_update(), blender::nodes::LazyFunctionForForeachGeometryElementZone::try_extract_element_geometries(), blender::io::grease_pencil::GreasePencilExporter::try_get_uniform_point_width(), blender::ed::sculpt_paint::boundary::twist_data_init_bmesh(), blender::ed::transform::VertSlideData::update_active_vert(), blender::ed::sculpt_paint::islands::vert_disjoint_set_to_islands(), and blender::ed::greasepencil::vertex_group_normalize_exec().
|
inlinestatic |
Get the value of the InlineBufferCapacity template argument. This is the number of elements that can be stored without doing an allocation.
Definition at line 389 of file BLI_array.hh.
|
inline |
Returns true when the number of elements in the array is zero.
Definition at line 253 of file BLI_array.hh.
Referenced by blender::ed::greasepencil::apply_eval_grease_pencil_data(), blender::ed::object::apply_objects_internal(), BKE_crazyspace_build_sculpt(), BKE_crazyspace_get_first_deform_matrices_editbmesh(), BKE_curve_calc_modifiers_pre(), BKE_lattice_modifiers_calc(), BKE_sculpt_get_first_deform_matrices(), BM_mesh_bm_from_me(), blender::ed::sculpt_paint::auto_mask::calc_vert_factors(), clip_lasso_select_exec(), clip_lasso_select_exec(), blender::bke::greasepencil::convert::AnimDataConvertor::fcurves_convert(), blender::ed::sculpt_paint::mask::fill_mask_bmesh(), blender::ed::sculpt_paint::grease_pencil_erase_lasso_exec(), blender::ed::greasepencil::grease_pencil_stroke_trim_exec(), blender::nodes::node_geo_curve_to_mesh_cc::grease_pencil_to_mesh(), blender::bke::mesh_calc_edges(), blender::ed::transform::mesh_partial_ensure(), blender::ed::space_node::node_find_indicated_socket(), blender::ed::space_node::node_lasso_select_exec(), blender::ed::object::object_origin_set_exec(), blender::ed::curves::separate_points(), blender::bke::greasepencil::convert::AnimDataConvertor::source_has_animation_to_convert(), blender::ed::curves::split_points(), UI_svg_icon_bitmap(), uv_lasso_select_exec(), and view3d_lasso_select_exec().
|
inline |
Definition at line 291 of file BLI_array.hh.
|
inline |
Return a reference to the nth last element. This invokes undefined behavior when the array is too short.
Definition at line 285 of file BLI_array.hh.
Referenced by blender::bke::mesh::build_edge_to_face_map(), blender::geometry::build_point_to_sample_map(), blender::bke::mesh::build_vert_to_face_map(), blender::geometry::calc_position_with_interpolation(), blender::geometry::calc_radius_with_interpolation(), blender::nodes::node_geo_curve_spline_parameter_cc::calculate_curve_parameters(), blender::ed::curves::tests::create_curves(), blender::nodes::node_geo_duplicate_elements_cc::duplicate_curves_CurveGeometry(), blender::ed::curves::extrude_curves(), blender::index_mask::get_static_index_mask_for_min_size(), blender::nodes::LazyFunctionForReduceForeachGeometryElement::handle_generation_items_group(), blender::ed::curves::invert_ranges(), blender::draw::mesh_render_data_faces_sorted_build(), blender::nodes::node_geo_attribute_statistic_cc::node_geo_exec(), blender::geometry::point_merge_by_distance(), blender::io::usd::USDBasisCurvesReader::read_curve_sample(), blender::ed::curves::separate_points(), blender::ed::curves::split_points(), and blender::geometry::weld_edge_find_doubles().
|
inline |
Definition at line 215 of file BLI_array.hh.
|
inline |
Definition at line 227 of file BLI_array.hh.
|
inline |
Definition at line 210 of file BLI_array.hh.
|
inline |
Definition at line 221 of file BLI_array.hh.
|
inlinenoexcept |
Definition at line 191 of file BLI_array.hh.
|
inline |
Definition at line 186 of file BLI_array.hh.
|
inline |
Definition at line 196 of file BLI_array.hh.
|
inline |
Definition at line 203 of file BLI_array.hh.
|
inline |
Definition at line 328 of file BLI_array.hh.
|
inline |
Definition at line 337 of file BLI_array.hh.
|
inline |
Destruct values and create a new array of the given size. The values in the new array are default constructed.
Definition at line 398 of file BLI_array.hh.
Referenced by blender::nodes::node_geo_duplicate_elements_cc::accumulate_counts_to_offsets(), blender::nodes::node_geo_instance_on_points_cc::add_instances_from_component(), blender::bke::Instances::almost_unique_ids(), apply_weights_vertex_normal(), BKE_crazyspace_build_sculpt(), BKE_crazyspace_get_first_deform_matrices_editbmesh(), BKE_mesh_remap_calc_loops_from_mesh(), BKE_sculpt_get_first_deform_matrices(), BM_mesh_bm_from_me(), BM_mesh_bm_to_me_compact(), BPy_BoolVectorProperty(), BPy_FloatVectorProperty(), BPy_IntVectorProperty(), blender::bke::mesh::build_edge_to_face_map(), blender::bke::mesh::build_vert_to_edge_map(), blender::bke::mesh::build_vert_to_face_map(), blender::geometry::deduplication::build_vert_to_tri_map(), blender::geometry::calc_vert_ranges_per_old_vert(), blender::ed::sculpt_paint::create_node_vert_offsets(), blender::ed::sculpt_paint::create_node_vert_offsets(), blender::ed::sculpt_paint::create_node_vert_offsets_bmesh(), blender::geometry::create_point_to_vert_map(), blender::ed::transform::curves::curve_populate_trans_data_structs(), blender::draw::extract_tan_init_common(), blender::nodes::node_geo_extrude_mesh_cc::extrude_mesh_edges(), blender::nodes::node_geo_extrude_mesh_cc::extrude_mesh_face_regions(), blender::geometry::fillet_curves(), blender::bke::greasepencil::convert::find_used_vertex_groups(), blender::nodes::node_geo_scale_elements_cc::gather_groups(), blender::nodes::node_geo_curve_topology_points_of_curve_cc::PointsOfCurveInput::get_varray_for_context(), blender::nodes::node_geo_mesh_topology_corners_of_edge_cc::CornersOfEdgeInput::get_varray_for_context(), blender::nodes::node_geo_mesh_topology_corners_of_face_cc::CornersOfFaceInput::get_varray_for_context(), blender::nodes::node_geo_mesh_topology_corners_of_vertex_cc::CornersOfVertInput::get_varray_for_context(), blender::nodes::node_geo_mesh_topology_edges_of_vertex_cc::EdgesOfVertInput::get_varray_for_context(), blender::io::csv::import_csv_as_pointcloud(), blender::ed::sculpt_paint::greasepencil::WeightPaintOperation::init_weight_data_for_drawings(), blender::ed::curves::invert_ranges(), blender::geometry::merge_customdata_all(), blender::geometry::merge_groups_create(), blender::bke::mesh_calc_edges(), blender::ed::object::mesh_to_grease_pencil_get_material_list(), blender::nodes::node_geo_attribute_statistic_cc::node_geo_exec(), normalEditModifier_do(), blender::ed::sculpt_paint::greasepencil::GrabOperation::on_stroke_begin(), blender::nodes::node_geo_interpolate_curves_cc::parameterize_guide_curves(), blender::bke::Instances::reference_user_counts(), and blender::seq::strip_image_transform_quad_get_ex().
|
inline |
Definition at line 332 of file BLI_array.hh.
|
inline |
Definition at line 341 of file BLI_array.hh.
|
inline |
Returns the number of elements in the array.
Definition at line 245 of file BLI_array.hh.
Referenced by blf_svg_icon_bitmap(), blender::nodes::node_geo_curve_spline_parameter_cc::calculate_curve_parameters(), blender::nodes::node_composite_planetrackdeform_cc::PlaneTrackDeformOperation::compute_plane_gpu(), blender::nodes::node_composite_planetrackdeform_cc::PlaneTrackDeformOperation::compute_plane_mask_gpu(), blender::ed::object::convert_grease_pencil_to_mesh(), blender::ed::transform::curves::createTransCurvesVerts(), blender::ed::transform::greasepencil::createTransGreasePencilVerts(), EDBM_verts_mirror_get_face(), blender::nodes::node_composite_planetrackdeform_cc::PlaneTrackDeformOperation::execute_gpu(), blender::ed::curves::extrude_knots(), blender::io::obj::fixup_invalid_face(), blender::ed::sculpt_paint::trim::generate_geometry(), blender::render::texturemargin::generate_margin(), blender::meshintersect::get_output_face_index(), blender::nodes::node_geo_input_instance_bounds_cc::InstanceBoundsField::get_varray_for_context(), blender::ed::sculpt_paint::gesture::init_from_lasso(), blender::ed::sculpt_paint::is_point_inside_lasso(), blender::geometry::merge_groups_create(), blender::ed::greasepencil::merge_layers(), blender::bke::mesh_calc_edges(), blender::ed::sculpt_paint::greasepencil::morph_points_to_curve(), blender::ed::space_node::node_group_make_wrapper(), blender::ed::object::object_origin_set_exec(), blender::ed::sculpt_paint::greasepencil::AverageWeightPaintOperation::on_stroke_begin(), blender::ed::sculpt_paint::greasepencil::BlurWeightPaintOperation::on_stroke_begin(), blender::ed::sculpt_paint::greasepencil::DrawWeightPaintOperation::on_stroke_begin(), blender::ed::sculpt_paint::greasepencil::SmearWeightPaintOperation::on_stroke_begin(), blender::ed::sculpt_paint::greasepencil::SmoothOperation::on_stroke_extended(), blender::ed::sculpt_paint::greasepencil::ThicknessOperation::on_stroke_extended(), blender::bke::pbvh::pbvh_bmesh_edge_loops(), blender::geometry::split_edges(), blender::tests::TEST(), blender::tests::TEST(), blender::tests::TEST(), blender::tests::TEST(), TEST(), TEST(), blender::bke::tests::GreasePencilInterpolate::test_sample_curve(), blender::ed::transform::transform_mesh_uv_vert_slide_data_create(), blender::ed::transform::transform_mesh_vert_slide_data_create(), blender::nodes::LazyFunctionForForeachGeometryElementZone::try_extract_element_geometries(), and blender::ed::sculpt_paint::islands::vert_disjoint_set_to_islands().
|
friend |
Definition at line 359 of file BLI_array.hh.
|
friend |
Definition at line 354 of file BLI_array.hh.