Blender  V3.3
Public Member Functions | List of all members
blender::fn::CustomMF_SI_SO< In1, Out1 > Class Template Reference

#include <FN_multi_function_builder.hh>

Inheritance diagram for blender::fn::CustomMF_SI_SO< In1, Out1 >:
blender::fn::CustomMF< MFParamTag< MFParamCategory::SingleInput, In1 >, MFParamTag< MFParamCategory::SingleOutput, Out1 > > blender::fn::MultiFunction

Public Member Functions

template<typename ElementFn , typename ExecPreset = CustomMF_presets::Materialized>
 CustomMF_SI_SO (const char *name, ElementFn element_fn, ExecPreset exec_preset=CustomMF_presets::Materialized())
 
- Public Member Functions inherited from blender::fn::CustomMF< MFParamTag< MFParamCategory::SingleInput, In1 >, MFParamTag< MFParamCategory::SingleOutput, Out1 > >
 CustomMF (const char *name, ElementFn element_fn, ExecPreset exec_preset=CustomMF_presets::Materialized())
 
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
 

Additional Inherited Members

- Static Public Member Functions inherited from blender::fn::CustomMF< MFParamTag< MFParamCategory::SingleInput, In1 >, MFParamTag< MFParamCategory::SingleOutput, Out1 > >
static void execute (ElementFn element_fn, ExecPreset exec_preset, IndexMask mask, MFParams params, std::index_sequence< I... >)
 
static void add_signature_parameters (MFSignatureBuilder &signature, std::index_sequence< I... >)
 
- Protected Member Functions inherited from blender::fn::MultiFunction
void set_signature (const MFSignature *signature)
 
virtual ExecutionHints get_execution_hints () const
 

Detailed Description

template<typename In1, typename Out1>
class blender::fn::CustomMF_SI_SO< In1, Out1 >

Generates a multi-function with the following parameters:

  1. single input (SI) of type In1
  2. single output (SO) of type Out1

This example creates a function that adds 10 to the incoming values: CustomMF_SI_SO<int, int> fn("add 10", [](int value) { return value + 10; });

Definition at line 426 of file FN_multi_function_builder.hh.

Constructor & Destructor Documentation

◆ CustomMF_SI_SO()

template<typename In1 , typename Out1 >
template<typename ElementFn , typename ExecPreset = CustomMF_presets::Materialized>
blender::fn::CustomMF_SI_SO< In1, Out1 >::CustomMF_SI_SO ( const char *  name,
ElementFn  element_fn,
ExecPreset  exec_preset = CustomMF_presets::Materialized() 
)
inline

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