|
Blender V4.3
|
#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 17 of file BLI_offset_span.hh.
|
default |
|
inline |
Definition at line 26 of file BLI_offset_span.hh.
|
inline |
Definition at line 29 of file BLI_offset_span.hh.
Referenced by blender::fn::multi_function::build::detail::execute_materialized(), blender::index_mask::from_bits_batch_predicate(), and blender::index_mask::segments_is_equal().
|
inline |
Definition at line 98 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 103 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 54 of file BLI_offset_span.hh.
References blender::IndexRange::index_range().
Referenced by blender::index_mask::from_bits_batch_predicate(), blender::index_mask::IndexMask::from_repeating(), and blender::index_mask::tests::mask_segments_equals().
|
inline |
Definition at line 39 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 49 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 34 of file BLI_offset_span.hh.
References T.
Referenced by 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 59 of file BLI_offset_span.hh.
References T.
|
inline |
Definition at line 44 of file BLI_offset_span.hh.
Referenced by blender::index_mask::difference_index_mask_segments(), blender::index_mask::evaluate_exact_with_indices(), 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 64 of file BLI_offset_span.hh.
References OffsetSpan().
|
inline |
Definition at line 69 of file BLI_offset_span.hh.
References OffsetSpan(), and size().