|
Blender V5.0
|
#include <BLI_offset_span.hh>
Classes | |
| class | Iterator |
Public Member Functions | |
| OffsetSpan ()=default | |
| OffsetSpan (const T offset, const Span< BaseT > data) | |
| Span< BaseT > | base_span () const |
| T | offset () const |
| bool | is_empty () const |
| int64_t | size () const |
| T | last (const int64_t n=0) const |
| IndexRange | index_range () const |
| T | operator[] (const int64_t i) const |
| OffsetSpan | slice (const IndexRange &range) const |
| OffsetSpan | slice (const int64_t start, const int64_t size) const |
| Iterator | begin () const |
| Iterator | end () const |
An OffsetSpan is a Span with a constant offset that is added to every value when accessed. This allows e.g. storing multiple int64_t indices as an array of int16_t with an additional int64_t offset.
Definition at line 21 of file BLI_offset_span.hh.
|
default |
|
inline |
Definition at line 30 of file BLI_offset_span.hh.
|
inline |
Definition at line 33 of file BLI_offset_span.hh.
Referenced by blender::fn::multi_function::build::detail::execute_materialized(), blender::geometry::face_tris_mask(), blender::index_mask::from_bits_batch_predicate(), and blender::index_mask::segments_is_equal().
|
inline |
Definition at line 102 of file BLI_offset_span.hh.
Referenced by blender::index_mask::difference_index_mask_segments(), blender::index_mask::intersect_index_mask_segments(), and blender::index_mask::union_index_mask_segments().
|
inline |
Definition at line 107 of file BLI_offset_span.hh.
Referenced by blender::index_mask::difference_index_mask_segments(), blender::index_mask::intersect_index_mask_segments(), and blender::index_mask::union_index_mask_segments().
|
inline |
Definition at line 58 of file BLI_offset_span.hh.
References blender::IndexRange::index_range().
Referenced by blender::ed::sculpt_paint::greasepencil::find_curve_mapping_from_index(), blender::index_mask::from_bits_batch_predicate(), blender::index_mask::IndexMask::from_repeating(), blender::geometry::gather_selected_offsets(), and blender::index_mask::tests::mask_segments_equals().
|
inline |
Definition at line 43 of file BLI_offset_span.hh.
Referenced by blender::index_mask::difference_index_mask_segments(), blender::index_mask::evaluate_exact_with_indices(), and blender::index_mask::segments_is_equal().
|
inline |
Definition at line 53 of file BLI_offset_span.hh.
References T.
Referenced by blender::index_mask::IndexMask::find_larger_equal(), blender::index_mask::IndexMask::from_bits(), blender::index_mask::from_bits_batch_predicate(), and blender::index_mask::IndexMask::from_bools().
|
inline |
Definition at line 38 of file BLI_offset_span.hh.
References T.
Referenced by blender::geometry::face_tris_mask(), blender::OffsetSpan< T, BaseT >::Iterator::Iterator(), OffsetSpan(), blender::index_mask::detail::segments_from_predicate_filter(), and blender::index_mask::segments_is_equal().
|
inline |
Definition at line 63 of file BLI_offset_span.hh.
|
inline |
Definition at line 48 of file BLI_offset_span.hh.
Referenced by blender::index_mask::difference_index_mask_segments(), blender::index_mask::evaluate_exact_with_indices(), blender::ed::sculpt_paint::greasepencil::find_curve_mapping_from_index(), blender::index_mask::IndexMask::from_repeating(), blender::index_mask::tests::mask_segments_equals(), blender::index_mask::segments_is_equal(), and slice().
|
inline |
Definition at line 68 of file BLI_offset_span.hh.
References OffsetSpan().
|
inline |
Definition at line 73 of file BLI_offset_span.hh.
References OffsetSpan(), and size().