Blender  V3.3
Public Member Functions | Static Public Member Functions | List of all members
blender::fn::CustomMF_SM< Mut1 > Class Template Reference

#include <FN_multi_function_builder.hh>

Inheritance diagram for blender::fn::CustomMF_SM< Mut1 >:
blender::fn::MultiFunction

Public Member Functions

 CustomMF_SM (const char *name, FunctionT function)
 
template<typename ElementFuncT >
 CustomMF_SM (const char *name, ElementFuncT element_fn)
 
void call (IndexMask mask, MFParams params, MFContext UNUSED(context)) const override
 
- Public Member Functions inherited from blender::fn::MultiFunction
virtual ~MultiFunction ()
 
void call_auto (IndexMask mask, MFParams params, MFContext context) const
 
virtual void call (IndexMask mask, MFParams params, MFContext context) const =0
 
virtual uint64_t hash () const
 
virtual bool equals (const MultiFunction &UNUSED(other)) const
 
int param_amount () const
 
IndexRange param_indices () const
 
MFParamType param_type (int param_index) const
 
StringRefNull param_name (int param_index) const
 
StringRefNull name () const
 
virtual std::string debug_name () const
 
bool depends_on_context () const
 
const MFSignaturesignature () const
 
ExecutionHints execution_hints () const
 

Static Public Member Functions

template<typename ElementFuncT >
static FunctionT create_function (ElementFuncT element_fn)
 

Additional Inherited Members

- Protected Member Functions inherited from blender::fn::MultiFunction
void set_signature (const MFSignature *signature)
 
virtual ExecutionHints get_execution_hints () const
 

Detailed Description

template<typename Mut1>
class blender::fn::CustomMF_SM< Mut1 >

Generates a multi-function with the following parameters:

  1. single mutable (SM) of type Mut1

Definition at line 537 of file FN_multi_function_builder.hh.

Constructor & Destructor Documentation

◆ CustomMF_SM() [1/2]

template<typename Mut1 >
blender::fn::CustomMF_SM< Mut1 >::CustomMF_SM ( const char *  name,
FunctionT  function 
)
inline

◆ CustomMF_SM() [2/2]

template<typename Mut1 >
template<typename ElementFuncT >
blender::fn::CustomMF_SM< Mut1 >::CustomMF_SM ( const char *  name,
ElementFuncT  element_fn 
)
inline

Definition at line 553 of file FN_multi_function_builder.hh.

Member Function Documentation

◆ call()

template<typename Mut1 >
void blender::fn::CustomMF_SM< Mut1 >::call ( IndexMask  mask,
MFParams  params,
MFContext   UNUSEDcontext 
) const
inlineoverride

Definition at line 569 of file FN_multi_function_builder.hh.

References mask(), and params.

◆ create_function()

template<typename Mut1 >
template<typename ElementFuncT >
static FunctionT blender::fn::CustomMF_SM< Mut1 >::create_function ( ElementFuncT  element_fn)
inlinestatic

Definition at line 558 of file FN_multi_function_builder.hh.

References mask().


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