Blender V5.0
blender::bke::AttributeFilterFromFunc< Fn > Struct Template Reference

#include <BKE_attribute_filters.hh>

Inherits blender::bke::AttributeFilter.

Public Member Functions

constexpr AttributeFilterFromFunc (Fn fn)
Result filter (const StringRef name) const override
Public Member Functions inherited from blender::bke::AttributeFilter
virtual ~AttributeFilter ()=default
bool allow_skip (const StringRef name) const

Additional Inherited Members

Public Types inherited from blender::bke::AttributeFilter
enum class  Result { AllowSkip , Process }
Static Public Member Functions inherited from blender::bke::AttributeFilter
static const AttributeFilterdefault_filter ()

Detailed Description

template<typename Fn>
struct blender::bke::AttributeFilterFromFunc< Fn >

Utility to create an AttributeFilter from a lambda.

Definition at line 20 of file BKE_attribute_filters.hh.

Constructor & Destructor Documentation

◆ AttributeFilterFromFunc()

template<typename Fn>
blender::bke::AttributeFilterFromFunc< Fn >::AttributeFilterFromFunc ( Fn fn)
inlineconstexpr

Definition at line 27 of file BKE_attribute_filters.hh.

Member Function Documentation

◆ filter()

template<typename Fn>
Result blender::bke::AttributeFilterFromFunc< Fn >::filter ( const StringRef ) const
inlineoverridevirtual

This function has different implementations in each derived class. By default, all attributes should be processed.

Reimplemented from blender::bke::AttributeFilter.

Definition at line 29 of file BKE_attribute_filters.hh.

References name.


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