Blender V4.3
BLI_offset_indices.hh File Reference
#include <algorithm>
#include <optional>
#include "BLI_index_mask_fwd.hh"
#include "BLI_index_range.hh"
#include "BLI_span.hh"

Go to the source code of this file.

Classes

struct  blender::offset_indices::NoSortCheck
 
class  blender::offset_indices::OffsetIndices< T >
 
struct  blender::offset_indices::GroupedSpan< T >
 

Namespaces

namespace  blender
 
namespace  blender::offset_indices
 

Functions

OffsetIndices< intblender::offset_indices::accumulate_counts_to_offsets (MutableSpan< int > counts_to_offsets, int start_offset=0)
 
std::optional< OffsetIndices< int > > blender::offset_indices::accumulate_counts_to_offsets_with_overflow_check (MutableSpan< int > counts_to_offsets, int start_offset=0)
 
void blender::offset_indices::fill_constant_group_size (int size, int start_offset, MutableSpan< int > offsets)
 
void blender::offset_indices::copy_group_sizes (OffsetIndices< int > offsets, const IndexMask &mask, MutableSpan< int > sizes)
 
void blender::offset_indices::gather_group_sizes (OffsetIndices< int > offsets, const IndexMask &mask, MutableSpan< int > sizes)
 
void blender::offset_indices::gather_group_sizes (OffsetIndices< int > offsets, Span< int > indices, MutableSpan< int > sizes)
 
int blender::offset_indices::sum_group_sizes (OffsetIndices< int > offsets, const IndexMask &mask)
 
int blender::offset_indices::sum_group_sizes (OffsetIndices< int > offsets, Span< int > indices)
 
OffsetIndices< intblender::offset_indices::gather_selected_offsets (OffsetIndices< int > src_offsets, const IndexMask &selection, int start_offset, MutableSpan< int > dst_offsets)
 
OffsetIndices< intblender::offset_indices::gather_selected_offsets (OffsetIndices< int > src_offsets, const IndexMask &selection, MutableSpan< int > dst_offsets)
 
void blender::offset_indices::build_reverse_map (OffsetIndices< int > offsets, MutableSpan< int > r_map)
 
void blender::offset_indices::build_reverse_offsets (Span< int > indices, MutableSpan< int > offsets)