Blender V4.3
blender::bke::CustomDataAttributeProvider Class Referencefinal

#include <attribute_access_intern.hh>

Inherits blender::bke::DynamicAttributesProvider.

Public Member Functions

 CustomDataAttributeProvider (const AttrDomain domain, const CustomDataAccessInfo custom_data_access)
 
GAttributeReader try_get_for_read (const void *owner, StringRef attribute_id) const final
 
GAttributeWriter try_get_for_write (void *owner, StringRef attribute_id) const final
 
bool try_delete (void *owner, StringRef attribute_id) const final
 
bool try_create (void *owner, StringRef attribute_id, AttrDomain domain, const eCustomDataType data_type, const AttributeInit &initializer) const final
 
bool foreach_attribute (const void *owner, FunctionRef< void(const AttributeIter &)> fn) const final
 
void foreach_domain (const FunctionRef< void(AttrDomain)> callback) const final
 

Detailed Description

This is the attribute provider for most user generated attributes.

Definition at line 126 of file attribute_access_intern.hh.

Constructor & Destructor Documentation

◆ CustomDataAttributeProvider()

blender::bke::CustomDataAttributeProvider::CustomDataAttributeProvider ( const AttrDomain domain,
const CustomDataAccessInfo custom_data_access )
inline

Definition at line 133 of file attribute_access_intern.hh.

Member Function Documentation

◆ foreach_attribute()

bool blender::bke::CustomDataAttributeProvider::foreach_attribute ( const void * owner,
FunctionRef< void(const AttributeIter &)> fn ) const
finalvirtual

◆ foreach_domain()

void blender::bke::CustomDataAttributeProvider::foreach_domain ( const FunctionRef< void(AttrDomain)> callback) const
inlinefinalvirtual

Implements blender::bke::DynamicAttributesProvider.

Definition at line 154 of file attribute_access_intern.hh.

References callback.

◆ try_create()

◆ try_delete()

◆ try_get_for_read()

◆ try_get_for_write()


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