Blender V5.0
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 135 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 142 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

◆ try_create()

bool blender::bke::CustomDataAttributeProvider::try_create ( void * owner,
StringRef attribute_id,
AttrDomain domain,
const eCustomDataType data_type,
const AttributeInit & initializer ) const
finalvirtual

◆ try_delete()

bool blender::bke::CustomDataAttributeProvider::try_delete ( void * owner,
StringRef attribute_id ) const
finalvirtual

◆ try_get_for_read()

GAttributeReader blender::bke::CustomDataAttributeProvider::try_get_for_read ( const void * owner,
StringRef attribute_id ) const
finalvirtual

◆ try_get_for_write()

GAttributeWriter blender::bke::CustomDataAttributeProvider::try_get_for_write ( void * owner,
StringRef attribute_id ) const
finalvirtual

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