Blender V5.0
blender::GVArrayImpl_For_GSpan Class Reference

#include <BLI_generic_virtual_array.hh>

Inherits blender::GVMutableArrayImpl.

Inherited by blender::GVArrayImpl_For_GArray, and blender::GVArrayImpl_For_GSpan_final.

Public Member Functions

 GVArrayImpl_For_GSpan (const GMutableSpan span)
#GVArrayImpl_For_GSpan
void get (int64_t index, void *r_value) const override
void get_to_uninitialized (int64_t index, void *r_value) const override
void set_by_copy (int64_t index, const void *value) override
void set_by_move (int64_t index, void *value) override
void set_by_relocate (int64_t index, void *value) override
CommonVArrayInfo common_info () const override
void materialize (const IndexMask &mask, void *dst, bool dst_is_uninitialized) const override
void materialize_compressed (const IndexMask &mask, void *dst, bool dst_is_uninitialized) const override
Public Member Functions inherited from blender::GVMutableArrayImpl
 GVMutableArrayImpl (const CPPType &type, int64_t size)
virtual void set_all (const void *src)
virtual bool try_assign_VMutableArray (void *varray) const
Public Member Functions inherited from blender::GVArrayImpl
virtual ~GVArrayImpl ()=default
 GVArrayImpl (const CPPType &type, int64_t size)
const CPPTypetype () const
int64_t size () const
virtual bool try_assign_VArray (void *varray) const

Protected Member Functions

 GVArrayImpl_For_GSpan (const CPPType &type, int64_t size)

Protected Attributes

void * data_ = nullptr
const int64_t element_size_
Protected Attributes inherited from blender::GVArrayImpl
const CPPTypetype_
int64_t size_

Detailed Description

Definition at line 537 of file BLI_generic_virtual_array.hh.

Constructor & Destructor Documentation

◆ GVArrayImpl_For_GSpan() [1/2]

◆ GVArrayImpl_For_GSpan() [2/2]

blender::GVArrayImpl_For_GSpan::GVArrayImpl_For_GSpan ( const CPPType & type,
int64_t size )
inlineprotected

Member Function Documentation

◆ common_info()

CommonVArrayInfo blender::GVArrayImpl_For_GSpan::common_info ( ) const
overridevirtual

Reimplemented from blender::GVArrayImpl.

Definition at line 153 of file generic_virtual_array.cc.

References data_, and blender::CommonVArrayInfo::Span.

◆ get()

void blender::GVArrayImpl_For_GSpan::get ( int64_t index,
void * r_value ) const
overridevirtual

Reimplemented from blender::GVArrayImpl.

Definition at line 128 of file generic_virtual_array.cc.

References data_, element_size_, POINTER_OFFSET, and blender::GVArrayImpl::type_.

◆ get_to_uninitialized()

void blender::GVArrayImpl_For_GSpan::get_to_uninitialized ( int64_t index,
void * r_value ) const
overridevirtual

◆ materialize()

void blender::GVArrayImpl_For_GSpan::materialize ( const IndexMask & mask,
void * dst,
bool dst_is_uninitialized ) const
overridevirtual

Reimplemented from blender::GVArrayImpl.

Definition at line 158 of file generic_virtual_array.cc.

References data_, mask(), and blender::GVArrayImpl::type_.

◆ materialize_compressed()

void blender::GVArrayImpl_For_GSpan::materialize_compressed ( const IndexMask & mask,
void * dst,
bool dst_is_uninitialized ) const
overridevirtual

Reimplemented from blender::GVArrayImpl.

Definition at line 170 of file generic_virtual_array.cc.

References data_, mask(), and blender::GVArrayImpl::type_.

◆ set_by_copy()

void blender::GVArrayImpl_For_GSpan::set_by_copy ( int64_t index,
const void * value )
overridevirtual

◆ set_by_move()

void blender::GVArrayImpl_For_GSpan::set_by_move ( int64_t index,
void * value )
overridevirtual

◆ set_by_relocate()

void blender::GVArrayImpl_For_GSpan::set_by_relocate ( int64_t index,
void * value )
overridevirtual

Member Data Documentation

◆ data_

void* blender::GVArrayImpl_For_GSpan::data_ = nullptr
protected

◆ element_size_

const int64_t blender::GVArrayImpl_For_GSpan::element_size_
protected

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