Blender V5.3
blender::VArrayRangeSpans< T > Class Template Reference

#include <BLI_virtual_array_range_spans.hh>

Public Member Functions

 VArrayRangeSpans ()=default
 VArrayRangeSpans (ResourceScope &scope, const VArray< T > &varray, const int max_range_size)
Span< T > get_span_for_range (const IndexRange range) const

Detailed Description

template<typename T>
class blender::VArrayRangeSpans< T >

This allows efficiently accessing a single-value virtual array as span, assuming that only ever a partial span is necessary. Specifically, this is more efficient than materializing the full single-value VArray into a large array.

Definition at line 21 of file BLI_virtual_array_range_spans.hh.

Constructor & Destructor Documentation

◆ VArrayRangeSpans() [1/2]

template<typename T>
blender::VArrayRangeSpans< T >::VArrayRangeSpans ( )
default

◆ VArrayRangeSpans() [2/2]

template<typename T>
blender::VArrayRangeSpans< T >::VArrayRangeSpans ( ResourceScope & scope,
const VArray< T > & varray,
const int max_range_size )
inline

Member Function Documentation

◆ get_span_for_range()

template<typename T>
Span< T > blender::VArrayRangeSpans< T >::get_span_for_range ( const IndexRange range) const
inline

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