Blender V5.0
blender::GVArrayImpl_For_SlicedGVArray Class Reference

Inherits blender::GVArrayImpl.

Public Member Functions

 GVArrayImpl_For_SlicedGVArray (GVArray varray, const IndexRange slice)
void get (const int64_t index, void *r_value) const override
void get_to_uninitialized (const int64_t index, void *r_value) const override
CommonVArrayInfo common_info () const override
void materialize (const IndexMask &mask, void *dst, const bool dst_is_uninitialized) const final
void materialize_compressed (const IndexMask &mask, void *dst, const bool dst_is_uninitialized) const final
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 Attributes

GVArray varray_
int64_t offset_
IndexRange slice_
Protected Attributes inherited from blender::GVArrayImpl
const CPPTypetype_
int64_t size_

Detailed Description

Definition at line 478 of file generic_virtual_array.cc.

Constructor & Destructor Documentation

◆ GVArrayImpl_For_SlicedGVArray()

blender::GVArrayImpl_For_SlicedGVArray::GVArrayImpl_For_SlicedGVArray ( GVArray varray,
const IndexRange slice )
inline

Member Function Documentation

◆ common_info()

◆ get()

void blender::GVArrayImpl_For_SlicedGVArray::get ( const int64_t index,
void * r_value ) const
inlineoverridevirtual

Reimplemented from blender::GVArrayImpl.

Definition at line 494 of file generic_virtual_array.cc.

References offset_, and varray_.

◆ get_to_uninitialized()

void blender::GVArrayImpl_For_SlicedGVArray::get_to_uninitialized ( const int64_t index,
void * r_value ) const
inlineoverridevirtual

Implements blender::GVArrayImpl.

Definition at line 499 of file generic_virtual_array.cc.

References offset_, and varray_.

◆ materialize()

void blender::GVArrayImpl_For_SlicedGVArray::materialize ( const IndexMask & mask,
void * dst,
const bool dst_is_uninitialized ) const
inlinefinalvirtual

Reimplemented from blender::GVArrayImpl.

Definition at line 524 of file generic_virtual_array.cc.

References mask(), offset_, POINTER_OFFSET, blender::GVArrayImpl::type_, and varray_.

◆ materialize_compressed()

void blender::GVArrayImpl_For_SlicedGVArray::materialize_compressed ( const IndexMask & mask,
void * dst,
const bool dst_is_uninitialized ) const
inlinefinalvirtual

Reimplemented from blender::GVArrayImpl.

Definition at line 532 of file generic_virtual_array.cc.

References mask(), offset_, and varray_.

Member Data Documentation

◆ offset_

int64_t blender::GVArrayImpl_For_SlicedGVArray::offset_
protected

◆ slice_

IndexRange blender::GVArrayImpl_For_SlicedGVArray::slice_
protected

Definition at line 482 of file generic_virtual_array.cc.

Referenced by GVArrayImpl_For_SlicedGVArray().

◆ varray_

GVArray blender::GVArrayImpl_For_SlicedGVArray::varray_
protected

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