|
Blender
V2.93
|
#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< T > | get_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< T > | get_span_impl () const |
| virtual bool | is_single_impl () const |
| virtual T | get_single_impl () const |
Protected Attributes | |
| int64_t | size_ |
Definition at line 45 of file BLI_virtual_array.hh.
|
inline |
Definition at line 50 of file BLI_virtual_array.hh.
References BLI_assert, and blender::VArray< T >::size_.
|
virtualdefault |
|
inline |
Definition at line 57 of file BLI_virtual_array.hh.
References BLI_assert, blender::VArray< T >::get_impl(), and blender::VArray< T >::size_.
Referenced by blender::fn::GVArrayForVArray< T >::get_impl(), blender::VArray< T >::get_single(), blender::fn::GVArrayForVArray< T >::get_to_uninitialized_impl(), and blender::VArray< T >::operator[]().
|
protectedpure virtual |
Implemented in blender::fn::VArrayForGVArray< T >, and blender::VArrayForSpan< T >.
Referenced by blender::VArray< T >::get().
|
inline |
Definition at line 105 of file BLI_virtual_array.hh.
References BLI_assert, blender::VArray< T >::get(), blender::VArray< T >::get_single_impl(), and blender::VArray< T >::is_single().
Referenced by blender::devirtualize_varray(), blender::devirtualize_varray2(), and blender::fn::GVArrayForVArray< T >::get_single_impl().
|
inlineprotectedvirtual |
Reimplemented in blender::fn::VArrayForGVArray< T >, and blender::VArrayForSingle< T >.
Definition at line 138 of file BLI_virtual_array.hh.
References BLI_assert_unreachable, and T.
Referenced by blender::VArray< T >::get_single().
|
inline |
Definition at line 85 of file BLI_virtual_array.hh.
References BLI_assert, blender::VArray< T >::get_span_impl(), and blender::VArray< T >::is_span().
Referenced by blender::devirtualize_varray(), blender::devirtualize_varray2(), and blender::fn::GVArrayForVArray< T >::get_span_impl().
|
inlineprotectedvirtual |
Reimplemented in blender::fn::VArrayForGVArray< T >, blender::VArrayForSingle< T >, and blender::VArrayForSpan< T >.
Definition at line 127 of file BLI_virtual_array.hh.
References BLI_assert_unreachable.
Referenced by blender::VArray< T >::get_span().
|
inline |
Definition at line 69 of file BLI_virtual_array.hh.
References blender::VArray< T >::size_.
|
inline |
Definition at line 95 of file BLI_virtual_array.hh.
References blender::VArray< T >::is_single_impl().
Referenced by blender::devirtualize_varray(), blender::devirtualize_varray2(), blender::VArray< T >::get_single(), and blender::fn::GVArrayForVArray< T >::is_single_impl().
|
inlineprotectedvirtual |
Reimplemented in blender::fn::VArrayForGVArray< T >, and blender::VArrayForSingle< T >.
Definition at line 133 of file BLI_virtual_array.hh.
Referenced by blender::VArray< T >::is_single().
|
inline |
Definition at line 75 of file BLI_virtual_array.hh.
References blender::VArray< T >::is_span_impl(), and blender::VArray< T >::size_.
Referenced by blender::devirtualize_varray(), blender::devirtualize_varray2(), blender::VArray< T >::get_span(), and blender::fn::GVArrayForVArray< T >::is_span_impl().
|
inlineprotectedvirtual |
Reimplemented in blender::fn::VArrayForGVArray< T >, blender::VArrayForSingle< T >, and blender::VArrayForSpan< T >.
Definition at line 122 of file BLI_virtual_array.hh.
Referenced by blender::VArray< T >::is_span().
|
inline |
Definition at line 114 of file BLI_virtual_array.hh.
References blender::VArray< T >::get().
|
inline |
Definition at line 64 of file BLI_virtual_array.hh.
References blender::VArray< T >::size_.
Referenced by blender::devirtualize_varray(), and blender::devirtualize_varray2().
|
protected |
Definition at line 47 of file BLI_virtual_array.hh.
Referenced by blender::VArray< T >::get(), blender::VArrayForSpan< T >::get_span_impl(), blender::VArray< T >::is_empty(), blender::VArray< T >::is_span(), blender::VArrayForSingle< T >::is_span_impl(), blender::VArray< T >::size(), and blender::VArray< T >::VArray().