Blender V5.0
blender::GVMutableArray Class Reference

#include <BLI_generic_virtual_array.hh>

Inherits blender::GVArrayCommon.

Public Member Functions

 GVMutableArray ()=default
#GVMutableArrayImpl
void fill (const void *value)
Public Member Functions inherited from blender::GVArrayCommon
bool may_have_ownership () const
IndexRange index_range () const
void materialize (void *dst) const
void materialize (const IndexMask &mask, void *dst) const
void materialize_to_uninitialized (void *dst) const
void materialize_to_uninitialized (const IndexMask &mask, void *dst) const
void materialize_compressed (const IndexMask &mask, void *dst) const
void materialize_compressed_to_uninitialized (const IndexMask &mask, void *dst) const
bool is_span () const
GSpan get_internal_span () const
bool is_single () const
void get_internal_single (void *r_value) const
void get_internal_single_to_uninitialized (void *r_value) const
const CPPTypetype () const
 operator bool () const
int64_t size () const
bool is_empty () const
template<typename T>
bool try_assign_VArray (VArray< T > &varray) const
CommonVArrayInfo common_info () const
void get (int64_t index, void *r_value) const
template<typename T>
T get (int64_t index) const
void get_to_uninitialized (int64_t index, void *r_value) const

#GVMutableArray

 GVMutableArray (const GVMutableArray &other)
 GVMutableArray (GVMutableArray &&other) noexcept
 GVMutableArray (GVMutableArrayImpl *impl)
 GVMutableArray (std::shared_ptr< GVMutableArrayImpl > impl)
 operator GVArray () const &
 operator GVArray () &&noexcept
GVMutableArrayoperator= (const GVMutableArray &other)
GVMutableArrayoperator= (GVMutableArray &&other) noexcept
GMutableSpan get_internal_span () const
void set_all (const void *src)
GVMutableArrayImplget_implementation () const
static GVMutableArray from_span (GMutableSpan span)

Inline methods for #GVMutableArray.

template<typename T>
 GVMutableArray (const VMutableArray< T > &varray)
template<typename T>
VMutableArray< Ttyped () const
template<typename ImplT, typename... Args>
static GVMutableArray from (Args &&...args)

Inline methods for #GVMutableArrayImpl.

template<typename T>
bool try_assign_VMutableArray (VMutableArray< T > &varray) const
void set_by_copy (int64_t index, const void *value)
void set_by_move (int64_t index, void *value)
void set_by_relocate (int64_t index, void *value)

Additional Inherited Members

Protected Types inherited from blender::GVArrayCommon
using Storage = Any<detail::GVArrayAnyExtraInfo, 40, 8>
Protected Member Functions inherited from blender::GVArrayCommon
 GVArrayCommon ()=default
 GVArrayCommon (const GVArrayCommon &other)
 GVArrayCommon (GVArrayCommon &&other) noexcept
 GVArrayCommon (const GVArrayImpl *impl)
 GVArrayCommon (std::shared_ptr< const GVArrayImpl > impl)
 ~GVArrayCommon ()
void copy_from (const GVArrayCommon &other)
void move_from (GVArrayCommon &&other) noexcept
const GVArrayImplimpl_from_storage () const
template<typename ImplT, typename... Args>
void emplace (Args &&...args)
Protected Attributes inherited from blender::GVArrayCommon
const GVArrayImplimpl_ = nullptr
Storage storage_

Detailed Description

Generic version of VMutableArray.

Definition at line 214 of file BLI_generic_virtual_array.hh.

Constructor & Destructor Documentation

◆ GVMutableArray() [1/6]

blender::GVMutableArray::GVMutableArray ( )
default

◆ GVMutableArray() [2/6]

blender::GVMutableArray::GVMutableArray ( const GVMutableArray & other)
default

References GVMutableArray().

◆ GVMutableArray() [3/6]

blender::GVMutableArray::GVMutableArray ( GVMutableArray && other)
defaultnoexcept

◆ GVMutableArray() [4/6]

blender::GVMutableArray::GVMutableArray ( GVMutableArrayImpl * impl)

Definition at line 770 of file generic_virtual_array.cc.

References blender::GVArrayCommon::GVArrayCommon().

◆ GVMutableArray() [5/6]

blender::GVMutableArray::GVMutableArray ( std::shared_ptr< GVMutableArrayImpl > impl)

Definition at line 772 of file generic_virtual_array.cc.

References blender::GVArrayCommon::GVArrayCommon().

◆ GVMutableArray() [6/6]

Member Function Documentation

◆ fill()

◆ from()

template<typename ImplT, typename... Args>
GVMutableArray blender::GVMutableArray::from ( Args &&... args)
inlinestatic

◆ from_span()

◆ get_implementation()

GVMutableArrayImpl * blender::GVMutableArray::get_implementation ( ) const

Definition at line 808 of file generic_virtual_array.cc.

Referenced by GVMutableArray().

◆ get_internal_span()

◆ operator GVArray() [1/2]

blender::GVMutableArray::operator GVArray ( ) &&
noexcept

Definition at line 789 of file generic_virtual_array.cc.

References blender::GVArrayCommon::move_from().

◆ operator GVArray() [2/2]

blender::GVMutableArray::operator GVArray ( ) const &

Definition at line 782 of file generic_virtual_array.cc.

References blender::GVArrayCommon::copy_from().

◆ operator=() [1/2]

GVMutableArray & blender::GVMutableArray::operator= ( const GVMutableArray & other)

◆ operator=() [2/2]

GVMutableArray & blender::GVMutableArray::operator= ( GVMutableArray && other)
noexcept

◆ set_all()

void blender::GVMutableArray::set_all ( const void * src)

Copy the values from the source buffer to all elements in the virtual array.

Definition at line 813 of file generic_virtual_array.cc.

Referenced by GVMutableArray(), blender::nodes::store_computed_output_attributes(), and vertex_paint_from_weight().

◆ set_by_copy()

void blender::GVMutableArray::set_by_copy ( int64_t index,
const void * value )
inline

◆ set_by_move()

void blender::GVMutableArray::set_by_move ( int64_t index,
void * value )
inline

Definition at line 659 of file BLI_generic_virtual_array.hh.

References BLI_assert, and blender::GVArrayCommon::size().

Referenced by GVMutableArray().

◆ set_by_relocate()

void blender::GVMutableArray::set_by_relocate ( int64_t index,
void * value )
inline

Definition at line 666 of file BLI_generic_virtual_array.hh.

References BLI_assert, and blender::GVArrayCommon::size().

Referenced by GVMutableArray().

◆ try_assign_VMutableArray()

template<typename T>
bool blender::GVMutableArray::try_assign_VMutableArray ( VMutableArray< T > & varray) const
inline

Definition at line 674 of file BLI_generic_virtual_array.hh.

References BLI_assert, blender::GVArrayCommon::impl_, and T.

Referenced by GVMutableArray(), and typed().

◆ typed()


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