Blender V4.3
blender::index_mask::IndexMaskData Struct Reference

#include <BLI_index_mask.hh>

Inherited by blender::index_mask::IndexMask [private].

Public Attributes

int64_t indices_num_
 
int64_t segments_num_
 
const int16_t ** indices_by_segment_
 
const int64_tsegment_offsets_
 
const int64_tcumulative_segment_sizes_
 
int64_t begin_index_in_segment_
 
int64_t end_index_in_segment_
 

Detailed Description

Base type of #IndexMask. This only exists to make it more convenient to construct an index mask in a few functions with IndexMask::data_for_inplace_construction.

The names intentionally have a trailing underscore here even though they are public in #IndexMaskData because they are private in #IndexMask.

Definition at line 65 of file BLI_index_mask.hh.

Member Data Documentation

◆ begin_index_in_segment_

int64_t blender::index_mask::IndexMaskData::begin_index_in_segment_

◆ cumulative_segment_sizes_

const int64_t* blender::index_mask::IndexMaskData::cumulative_segment_sizes_

Encodes the size of each segment. The size of a specific segment can be computed by subtracting consecutive values (also see #OffsetIndices). The size of this array is one larger than segments_num_. Note that the first value is not necessarily zero when an index mask is a slice of another mask.

Definition at line 89 of file BLI_index_mask.hh.

Referenced by blender::index_mask::IndexMask::find_smaller_equal(), blender::index_mask::IndexMask::index_to_iterator(), blender::index_mask::IndexMask::IndexMask(), blender::index_mask::IndexMask::iterator_to_index(), and blender::index_mask::IndexMask::segment().

◆ end_index_in_segment_

int64_t blender::index_mask::IndexMaskData::end_index_in_segment_

Index into the last segment where the #IndexMask ends. This exists to support slicing without having to modify and therefore allocate a new cumulative_segment_sizes_ array.

Definition at line 99 of file BLI_index_mask.hh.

Referenced by blender::index_mask::IndexMask::find_smaller_equal(), blender::index_mask::IndexMask::IndexMask(), blender::index_mask::IndexMask::IndexMask(), blender::index_mask::IndexMask::last(), and blender::index_mask::IndexMask::segment().

◆ indices_by_segment_

const int16_t** blender::index_mask::IndexMaskData::indices_by_segment_

◆ indices_num_

◆ segment_offsets_

◆ segments_num_


The documentation for this struct was generated from the following file: