Blender  V2.93
Public Member Functions | Public Attributes | List of all members
blender::bke::TemporaryWriteAttribute Class Referencefinal

Inherits blender::bke::WriteAttribute.

Public Member Functions

 TemporaryWriteAttribute (AttributeDomain domain, GMutableSpan data, GeometryComponent &component, std::string final_name)
 
 ~TemporaryWriteAttribute () override
 
void get_internal (const int64_t index, void *r_value) const override
 
void set_internal (const int64_t index, const void *value) override
 
void initialize_span (const bool UNUSED(write_only)) override
 
void apply_span_if_necessary () 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 ()
 

Public Attributes

GMutableSpan data
 
GeometryComponentcomponent
 
std::string final_name
 

Additional Inherited Members

- Protected Member Functions inherited from blender::bke::WriteAttribute
virtual void initialize_span (const bool write_only)
 
- 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

Definition at line 161 of file attribute_access.cc.

Constructor & Destructor Documentation

◆ TemporaryWriteAttribute()

blender::bke::TemporaryWriteAttribute::TemporaryWriteAttribute ( AttributeDomain  domain,
GMutableSpan  data,
GeometryComponent component,
std::string  final_name 
)
inline

Definition at line 167 of file attribute_access.cc.

◆ ~TemporaryWriteAttribute()

blender::bke::TemporaryWriteAttribute::~TemporaryWriteAttribute ( )
inlineoverride

Member Function Documentation

◆ apply_span_if_necessary()

void blender::bke::TemporaryWriteAttribute::apply_span_if_necessary ( )
inlineoverridevirtual

Reimplemented from blender::bke::WriteAttribute.

Definition at line 202 of file attribute_access.cc.

◆ get_internal()

void blender::bke::TemporaryWriteAttribute::get_internal ( const int64_t  index,
void *  r_value 
) const
inlineoverridevirtual

◆ initialize_span()

void blender::bke::TemporaryWriteAttribute::initialize_span ( const bool   UNUSEDwrite_only)
inlineoverride

◆ set_internal()

void blender::bke::TemporaryWriteAttribute::set_internal ( const int64_t  index,
const void *  value 
)
inlineoverridevirtual

Member Data Documentation

◆ component

GeometryComponent& blender::bke::TemporaryWriteAttribute::component

Definition at line 164 of file attribute_access.cc.

Referenced by OutputAttributePtr::save().

◆ data

GMutableSpan blender::bke::TemporaryWriteAttribute::data

◆ final_name

std::string blender::bke::TemporaryWriteAttribute::final_name

Definition at line 165 of file attribute_access.cc.

Referenced by OutputAttributePtr::save().


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