Blender
V3.3
|
#include <BLI_generic_vector_array.hh>
Public Member Functions | |
GVectorArray ()=delete | |
GVectorArray (const CPPType &type, int64_t array_size) | |
~GVectorArray () | |
int64_t | size () const |
bool | is_empty () const |
const CPPType & | type () const |
void | append (int64_t index, const void *value) |
void | extend (int64_t index, const GVArray &values) |
void | extend (int64_t index, GSpan values) |
void | extend (IndexMask mask, const GVVectorArray &values) |
void | extend (IndexMask mask, const GVectorArray &values) |
void | clear (IndexMask mask) |
GMutableSpan | operator[] (int64_t index) |
GSpan | operator[] (int64_t index) const |
Definition at line 20 of file BLI_generic_vector_array.hh.
|
delete |
Definition at line 7 of file generic_vector_array.cc.
blender::GVectorArray::~GVectorArray | ( | ) |
Definition at line 12 of file generic_vector_array.cc.
References blender::CPPType::destruct_n(), and blender::CPPType::is_trivially_destructible().
Definition at line 22 of file generic_vector_array.cc.
References blender::CPPType::copy_construct(), and POINTER_OFFSET.
Referenced by blender::GVectorArray_TypedMutableRef< T >::append(), blender::fn::tests::GenericAppendFunction::call(), extend(), and blender::tests::TEST().
Definition at line 64 of file generic_vector_array.cc.
References blender::CPPType::destruct_n(), and mask().
void blender::GVectorArray::extend | ( | IndexMask | mask, |
const GVectorArray & | values | ||
) |
Definition at line 58 of file generic_vector_array.cc.
References extend().
void blender::GVectorArray::extend | ( | IndexMask | mask, |
const GVVectorArray & | values | ||
) |
Definition at line 50 of file generic_vector_array.cc.
Definition at line 34 of file generic_vector_array.cc.
References append(), BLI_assert, buffer, BUFFER_FOR_CPP_TYPE_VALUE, blender::CPPType::destruct(), blender::GVArrayCommon::get(), blender::GVArrayCommon::size(), and blender::GVArrayCommon::type().
Referenced by blender::fn::CustomMF_GenericConstantArray::call(), blender::fn::VariableState::ensure_is_mutable(), blender::fn::VariableState::ensure_is_mutable__one(), blender::GVectorArray_TypedMutableRef< T >::extend(), extend(), and blender::tests::TEST().
Definition at line 45 of file generic_vector_array.cc.
References extend(), and blender::GVArray::ForSpan().
|
inline |
Definition at line 50 of file BLI_generic_vector_array.hh.
References blender::Array< T, InlineBufferCapacity, Allocator >::is_empty().
Referenced by blender::GVectorArray_TypedMutableRef< T >::is_empty().
GMutableSpan blender::GVectorArray::operator[] | ( | int64_t | index | ) |
Definition at line 73 of file generic_vector_array.cc.
Definition at line 79 of file generic_vector_array.cc.
|
inline |
Definition at line 45 of file BLI_generic_vector_array.hh.
References blender::Array< T, InlineBufferCapacity, Allocator >::size().
Referenced by blender::fn::MFParamsBuilder::add_vector_mutable(), blender::fn::MFParamsBuilder::add_vector_output(), blender::GVVectorArray_For_GVectorArray::get_vector_size_impl(), and blender::GVectorArray_TypedMutableRef< T >::size().
|
inline |
Definition at line 55 of file BLI_generic_vector_array.hh.
Referenced by blender::fn::MFParamsBuilder::add_vector_mutable(), blender::fn::MFParamsBuilder::add_vector_output(), and blender::GVectorArray_TypedMutableRef< T >::GVectorArray_TypedMutableRef().