Blender V5.0
blender::bke::attribute_accessor_functions Namespace Reference

Functions

template<const GeometryAttributeProviders & providers>
std::optional< AttributeDomainAndTypebuiltin_domain_and_type (const void *, const StringRef name)
template<const GeometryAttributeProviders & providers>
GPointer builtin_default_value (const void *, const StringRef attribute_id)
template<const GeometryAttributeProviders & providers>
GAttributeReader lookup (const void *owner, const StringRef name)
template<const GeometryAttributeProviders & providers>
void foreach_attribute (const void *owner, const FunctionRef< void(const AttributeIter &)> fn, const AttributeAccessor &accessor)
template<const GeometryAttributeProviders & providers>
AttributeValidator lookup_validator (const void *, const blender::StringRef name)
template<const GeometryAttributeProviders & providers>
GAttributeWriter lookup_for_write (void *owner, const StringRef name)
template<const GeometryAttributeProviders & providers>
bool remove (void *owner, const StringRef name)
template<const GeometryAttributeProviders & providers>
bool add (void *owner, const StringRef name, const AttrDomain domain, const AttrType data_type, const AttributeInit &initializer)
template<const GeometryAttributeProviders & providers>
AttributeAccessorFunctions accessor_functions_for_providers ()

Function Documentation

◆ accessor_functions_for_providers()

template<const GeometryAttributeProviders & providers>
AttributeAccessorFunctions blender::bke::attribute_accessor_functions::accessor_functions_for_providers ( )
inline

◆ add()

template<const GeometryAttributeProviders & providers>
bool blender::bke::attribute_accessor_functions::add ( void * owner,
const StringRef name,
const AttrDomain domain,
const AttrType data_type,
const AttributeInit & initializer )
inline

◆ builtin_default_value()

template<const GeometryAttributeProviders & providers>
GPointer blender::bke::attribute_accessor_functions::builtin_default_value ( const void * ,
const StringRef attribute_id )
inline

Definition at line 283 of file attribute_access_intern.hh.

Referenced by accessor_functions_for_providers().

◆ builtin_domain_and_type()

template<const GeometryAttributeProviders & providers>
std::optional< AttributeDomainAndType > blender::bke::attribute_accessor_functions::builtin_domain_and_type ( const void * ,
const StringRef name )
inline

◆ foreach_attribute()

◆ lookup()

template<const GeometryAttributeProviders & providers>
GAttributeReader blender::bke::attribute_accessor_functions::lookup ( const void * owner,
const StringRef name )
inline

Definition at line 294 of file attribute_access_intern.hh.

References name.

Referenced by accessor_functions_for_providers().

◆ lookup_for_write()

template<const GeometryAttributeProviders & providers>
GAttributeWriter blender::bke::attribute_accessor_functions::lookup_for_write ( void * owner,
const StringRef name )
inline

Definition at line 358 of file attribute_access_intern.hh.

References name.

Referenced by accessor_functions_for_providers().

◆ lookup_validator()

template<const GeometryAttributeProviders & providers>
AttributeValidator blender::bke::attribute_accessor_functions::lookup_validator ( const void * ,
const blender::StringRef name )
inline

◆ remove()

template<const GeometryAttributeProviders & providers>
bool blender::bke::attribute_accessor_functions::remove ( void * owner,
const StringRef name )
inline

Definition at line 375 of file attribute_access_intern.hh.

References name.

Referenced by accessor_functions_for_providers().