|
Blender V4.3
|
#include <BLI_offset_indices.hh>
Public Member Functions | |
| GroupedSpan ()=default | |
| GroupedSpan (OffsetIndices< int > offsets, Span< T > data) | |
| Span< T > | operator[] (const int64_t index) const |
| int64_t | size () const |
| IndexRange | index_range () const |
| bool | is_empty () const |
Public Attributes | |
| OffsetIndices< int > | offsets |
| Span< T > | data |
References many separate spans in a larger contiguous array. This gives a more efficient way to store many grouped arrays, without requiring many small allocations, giving the general benefits of using contiguous memory.
Definition at line 115 of file BLI_offset_indices.hh.
|
default |
|
inline |
Definition at line 120 of file BLI_offset_indices.hh.
References BLI_assert, and blender::offset_indices::OffsetIndices< T >::total_size().
|
inline |
Definition at line 135 of file BLI_offset_indices.hh.
References blender::offset_indices::OffsetIndices< T >::index_range().
Referenced by blender::nodes::node_geo_input_mesh_face_neighbors_cc::construct_neighbor_count_varray(), blender::nodes::node_geo_scale_elements_cc::scale_on_axis(), blender::nodes::node_geo_scale_elements_cc::scale_uniformly(), and blender::nodes::node_geo_input_shortest_edge_paths_cc::shortest_paths().
|
inline |
Definition at line 140 of file BLI_offset_indices.hh.
References blender::Span< T >::size().
Referenced by face_edge_loop_islands_calc().
|
inline |
Definition at line 125 of file BLI_offset_indices.hh.
References blender::Span< T >::slice().
|
inline |
Definition at line 130 of file BLI_offset_indices.hh.
References blender::offset_indices::OffsetIndices< T >::size().
Referenced by build_emats_stack(), collect_hull_frames(), blender::nodes::node_geo_input_mesh_face_neighbors_cc::construct_neighbor_count_varray(), mesh_island_to_astar_graph_edge_process(), multires_reshape_apply_base_refit_base_mesh(), blender::ed::object::skin_armature_bone_create(), and blender::ed::object::vgroup_smooth_subset().
| Span<T> blender::offset_indices::GroupedSpan< T >::data |
| OffsetIndices<int> blender::offset_indices::GroupedSpan< T >::offsets |
Definition at line 116 of file BLI_offset_indices.hh.
Referenced by blender::nodes::node_geo_input_mesh_face_neighbors_cc::construct_neighbor_count_varray().