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

#include <BLI_virtual_array.hh>

Inherited by blender::VArrayForSingle< T >, blender::VArrayForSpan< T >, and blender::fn::VArrayForGVArray< T >.

Public Member Functions

 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

virtual T get_impl (const int64_t index) const =0
 
virtual bool is_span_impl () const
 
virtual Span< Tget_span_impl () const
 
virtual bool is_single_impl () const
 
virtual T get_single_impl () const
 

Protected Attributes

int64_t size_
 

Detailed Description

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

Definition at line 45 of file BLI_virtual_array.hh.

Constructor & Destructor Documentation

◆ VArray()

template<typename T >
blender::VArray< T >::VArray ( const int64_t  size)
inline

Definition at line 50 of file BLI_virtual_array.hh.

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

◆ ~VArray()

template<typename T >
virtual blender::VArray< T >::~VArray ( )
virtualdefault

Member Function Documentation

◆ get()

template<typename T >
T blender::VArray< T >::get ( const int64_t  index) const
inline

◆ get_impl()

template<typename T >
virtual T blender::VArray< T >::get_impl ( const int64_t  index) const
protectedpure virtual

◆ get_single()

template<typename T >
T blender::VArray< T >::get_single ( ) const
inline

◆ get_single_impl()

template<typename T >
virtual T blender::VArray< T >::get_single_impl ( ) const
inlineprotectedvirtual

◆ get_span()

template<typename T >
Span<T> blender::VArray< T >::get_span ( ) const
inline

◆ get_span_impl()

template<typename T >
virtual Span<T> blender::VArray< T >::get_span_impl ( ) const
inlineprotectedvirtual

◆ is_empty()

template<typename T >
bool blender::VArray< T >::is_empty ( ) const
inline

Definition at line 69 of file BLI_virtual_array.hh.

References blender::VArray< T >::size_.

◆ is_single()

template<typename T >
bool blender::VArray< T >::is_single ( ) const
inline

◆ is_single_impl()

template<typename T >
virtual bool blender::VArray< T >::is_single_impl ( ) const
inlineprotectedvirtual

◆ is_span()

template<typename T >
bool blender::VArray< T >::is_span ( ) const
inline

◆ is_span_impl()

template<typename T >
virtual bool blender::VArray< T >::is_span_impl ( ) const
inlineprotectedvirtual

◆ operator[]()

template<typename T >
T blender::VArray< T >::operator[] ( const int64_t  index) const
inline

Definition at line 114 of file BLI_virtual_array.hh.

References blender::VArray< T >::get().

◆ size()

template<typename T >
int64_t blender::VArray< T >::size ( ) const
inline

Member Data Documentation

◆ size_

template<typename T >
int64_t blender::VArray< T >::size_
protected

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