Blender  V2.93
Public Member Functions | Protected Member Functions | List of all members
blender::VArrayForSpan< T > Class Template Referencefinal

#include <BLI_virtual_array.hh>

Inherits blender::VArray< T >.

Public Member Functions

 VArrayForSpan (const Span< T > data)
 
- Public Member Functions inherited from blender::VArray< T >
 VArray (const int64_t size)
 
virtual ~VArray ()=default
 
T get (const int64_t index) const
 
int64_t size () const
 
bool is_empty () const
 
bool is_span () const
 
Span< Tget_span () const
 
bool is_single () const
 
T get_single () const
 
T operator[] (const int64_t index) const
 

Protected Member Functions

T get_impl (const int64_t index) const override
 
bool is_span_impl () const override
 
Span< Tget_span_impl () const override
 
- Protected Member Functions inherited from blender::VArray< T >
virtual bool is_single_impl () const
 
virtual T get_single_impl () const
 

Additional Inherited Members

- Protected Attributes inherited from blender::VArray< T >
int64_t size_
 

Detailed Description

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

A virtual array implementation for a span. This class is final so that it can be devirtualized by the compiler in some cases (e.g. when devirtualize_varray is used).

Definition at line 151 of file BLI_virtual_array.hh.

Constructor & Destructor Documentation

◆ VArrayForSpan()

template<typename T >
blender::VArrayForSpan< T >::VArrayForSpan ( const Span< T data)
inline

Definition at line 156 of file BLI_virtual_array.hh.

References data_.

Member Function Documentation

◆ get_impl()

template<typename T >
T blender::VArrayForSpan< T >::get_impl ( const int64_t  index) const
inlineoverrideprotectedvirtual

Implements blender::VArray< T >.

Definition at line 161 of file BLI_virtual_array.hh.

References data_.

◆ get_span_impl()

template<typename T >
Span<T> blender::VArrayForSpan< T >::get_span_impl ( ) const
inlineoverrideprotectedvirtual

Reimplemented from blender::VArray< T >.

Definition at line 171 of file BLI_virtual_array.hh.

References data_, and blender::VArray< T >::size_.

◆ is_span_impl()

template<typename T >
bool blender::VArrayForSpan< T >::is_span_impl ( ) const
inlineoverrideprotectedvirtual

Reimplemented from blender::VArray< T >.

Definition at line 166 of file BLI_virtual_array.hh.


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