|
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(), and blender::index_mask::from_bits_batch_predicate().
|
inline |
Definition at line 98 of file BLI_offset_span.hh.
References blender::Span< T >::begin().
Referenced by blender::index_mask::difference_index_mask_segments().
|
inline |
Definition at line 103 of file BLI_offset_span.hh.
References blender::Span< T >::end().
Referenced by blender::index_mask::difference_index_mask_segments().
|
inline |
Definition at line 54 of file BLI_offset_span.hh.
References blender::Span< T >::index_range().
Referenced by blender::index_mask::from_bits_batch_predicate(), and blender::index_mask::IndexMask::from_repeating().
|
inline |
Definition at line 39 of file BLI_offset_span.hh.
References blender::Span< T >::is_empty().
Referenced by blender::index_mask::difference_index_mask_segments(), and blender::index_mask::evaluate_exact_with_indices().
|
inline |
Definition at line 49 of file BLI_offset_span.hh.
References blender::Span< T >::last().
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.
Referenced by blender::index_mask::detail::segments_from_predicate_filter().
|
inline |
Definition at line 59 of file BLI_offset_span.hh.
References T.
|
inline |
Definition at line 44 of file BLI_offset_span.hh.
References blender::Span< T >::size().
Referenced by blender::index_mask::difference_index_mask_segments(), blender::index_mask::evaluate_exact_with_indices(), and blender::index_mask::IndexMask::from_repeating().
|
inline |
Definition at line 64 of file BLI_offset_span.hh.
References blender::Span< T >::slice().
|
inline |
Definition at line 69 of file BLI_offset_span.hh.
References blender::Span< T >::slice().