Blender V5.0
blender::GVArrayImpl_For_SingleValueRef Class Reference

#include <BLI_generic_virtual_array.hh>

Inherits blender::GVArrayImpl.

Inherited by blender::GVArrayImpl_For_SingleValue, and blender::GVArrayImpl_For_SingleValueRef_final.

Public Member Functions

 GVArrayImpl_For_SingleValueRef (const CPPType &type, const int64_t size, const void *value)
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_SingleValueRef (const CPPType &type, const int64_t size)
#GVArrayImpl_For_SingleValueRef
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, bool dst_is_uninitialized) const override
void materialize_compressed (const IndexMask &mask, void *dst, bool dst_is_uninitialized) const override

Protected Attributes

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

Detailed Description

Definition at line 589 of file BLI_generic_virtual_array.hh.

Constructor & Destructor Documentation

◆ GVArrayImpl_For_SingleValueRef() [1/2]

blender::GVArrayImpl_For_SingleValueRef::GVArrayImpl_For_SingleValueRef ( const CPPType & type,
const int64_t size,
const void * value )
inline

◆ GVArrayImpl_For_SingleValueRef() [2/2]

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

Member Function Documentation

◆ common_info()

CommonVArrayInfo blender::GVArrayImpl_For_SingleValueRef::common_info ( ) const
overrideprotectedvirtual

Reimplemented from blender::GVArrayImpl.

Definition at line 200 of file generic_virtual_array.cc.

References blender::CommonVArrayInfo::Single, and value_.

◆ get()

void blender::GVArrayImpl_For_SingleValueRef::get ( const int64_t index,
void * r_value ) const
overrideprotectedvirtual

Reimplemented from blender::GVArrayImpl.

Definition at line 190 of file generic_virtual_array.cc.

References blender::GVArrayImpl::type_, and value_.

◆ get_to_uninitialized()

void blender::GVArrayImpl_For_SingleValueRef::get_to_uninitialized ( const int64_t index,
void * r_value ) const
overrideprotectedvirtual

Implements blender::GVArrayImpl.

Definition at line 194 of file generic_virtual_array.cc.

References blender::GVArrayImpl::type_, and value_.

◆ materialize()

void blender::GVArrayImpl_For_SingleValueRef::materialize ( const IndexMask & mask,
void * dst,
bool dst_is_uninitialized ) const
overrideprotectedvirtual

Reimplemented from blender::GVArrayImpl.

Definition at line 205 of file generic_virtual_array.cc.

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

◆ materialize_compressed()

void blender::GVArrayImpl_For_SingleValueRef::materialize_compressed ( const IndexMask & mask,
void * dst,
bool dst_is_uninitialized ) const
overrideprotectedvirtual

Reimplemented from blender::GVArrayImpl.

Definition at line 217 of file generic_virtual_array.cc.

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

Member Data Documentation

◆ value_


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