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

#include <attribute_access_intern.hh>

Inherits blender::bke::ReadAttribute.

Public Member Functions

 ConstantReadAttribute (AttributeDomain domain, const int64_t size, const CPPType &type, const void *value)
 
 ~ConstantReadAttribute () override
 
void get_internal (const int64_t UNUSED(index), void *r_value) const override
 
void initialize_span () const override
 
- Public Member Functions inherited from blender::bke::ReadAttribute
 ReadAttribute (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
 
template<typename T >
Span< Tget_span () const
 
virtual ~ReadAttribute ()
 
fn::GSpan get_span () const
 

Additional Inherited Members

- Protected Member Functions inherited from blender::bke::ReadAttribute
virtual void get_internal (const int64_t index, void *r_value) const =0
 
- Protected Attributes inherited from blender::bke::ReadAttribute
const AttributeDomain domain_
 
const CPPTypecpp_type_
 
const CustomDataType custom_data_type_
 
const int64_t size_
 
std::mutex span_mutex_
 
void * array_buffer_ = nullptr
 
bool array_is_temporary_ = false
 

Detailed Description

Definition at line 27 of file attribute_access_intern.hh.

Constructor & Destructor Documentation

◆ ConstantReadAttribute()

blender::bke::ConstantReadAttribute::ConstantReadAttribute ( AttributeDomain  domain,
const int64_t  size,
const CPPType type,
const void *  value 
)
inline

Definition at line 32 of file attribute_access_intern.hh.

References MEM_mallocN_aligned, and type.

◆ ~ConstantReadAttribute()

blender::bke::ConstantReadAttribute::~ConstantReadAttribute ( )
inlineoverride

Member Function Documentation

◆ get_internal()

void blender::bke::ConstantReadAttribute::get_internal ( const int64_t   UNUSEDindex,
void *  r_value 
) const
inlineoverride

◆ initialize_span()

void blender::bke::ConstantReadAttribute::initialize_span ( ) const
inlineoverridevirtual

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