Blender  V2.93
Public Member Functions | List of all members
blender::bke::DerivedArrayWriteAttribute< StructT, ElemT, GetFunc, SetFunc > Class Template Referencefinal

#include <attribute_access_intern.hh>

Inherits blender::bke::WriteAttribute.

Public Member Functions

 DerivedArrayWriteAttribute (AttributeDomain domain, MutableSpan< StructT > data)
 
void get_internal (const int64_t index, void *r_value) const override
 
void set_internal (const int64_t index, const void *value) override
 
- Public Member Functions inherited from blender::bke::WriteAttribute
 WriteAttribute (AttributeDomain domain, const CPPType &cpp_type, const int64_t size)
 
AttributeDomain domain () const
 
const CPPTypecpp_type () const
 
CustomDataType custom_data_type () const
 
int64_t size () const
 
void get (const int64_t index, void *r_value) const
 
void set (const int64_t index, const void *value)
 
template<typename T >
MutableSpan< Tget_span ()
 
template<typename T >
MutableSpan< Tget_span_for_write_only ()
 
virtual ~WriteAttribute ()
 
fn::GMutableSpan get_span ()
 
fn::GMutableSpan get_span_for_write_only ()
 
void apply_span ()
 

Additional Inherited Members

- Protected Member Functions inherited from blender::bke::WriteAttribute
virtual void initialize_span (const bool write_only)
 
virtual void apply_span_if_necessary ()
 
- Protected Attributes inherited from blender::bke::WriteAttribute
const AttributeDomain domain_
 
const CPPTypecpp_type_
 
const CustomDataType custom_data_type_
 
const int64_t size_
 
void * array_buffer_ = nullptr
 
bool array_is_temporary_ = false
 
bool array_should_be_applied_ = false
 

Detailed Description

template<typename StructT, typename ElemT, ElemT(*)(const StructT &) GetFunc, void(*)(StructT &, const ElemT &) SetFunc>
class blender::bke::DerivedArrayWriteAttribute< StructT, ElemT, GetFunc, SetFunc >

Definition at line 163 of file attribute_access_intern.hh.

Constructor & Destructor Documentation

◆ DerivedArrayWriteAttribute()

template<typename StructT , typename ElemT , ElemT(*)(const StructT &) GetFunc, void(*)(StructT &, const ElemT &) SetFunc>
blender::bke::DerivedArrayWriteAttribute< StructT, ElemT, GetFunc, SetFunc >::DerivedArrayWriteAttribute ( AttributeDomain  domain,
MutableSpan< StructT >  data 
)
inline

Definition at line 168 of file attribute_access_intern.hh.

Member Function Documentation

◆ get_internal()

template<typename StructT , typename ElemT , ElemT(*)(const StructT &) GetFunc, void(*)(StructT &, const ElemT &) SetFunc>
void blender::bke::DerivedArrayWriteAttribute< StructT, ElemT, GetFunc, SetFunc >::get_internal ( const int64_t  index,
void *  r_value 
) const
inlineoverridevirtual

Implements blender::bke::WriteAttribute.

Definition at line 173 of file attribute_access_intern.hh.

References data_.

◆ set_internal()

template<typename StructT , typename ElemT , ElemT(*)(const StructT &) GetFunc, void(*)(StructT &, const ElemT &) SetFunc>
void blender::bke::DerivedArrayWriteAttribute< StructT, ElemT, GetFunc, SetFunc >::set_internal ( const int64_t  index,
const void *  value 
)
inlineoverridevirtual

Implements blender::bke::WriteAttribute.

Definition at line 180 of file attribute_access_intern.hh.

References data_.


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