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

#include <FN_multi_function_builder.hh>

Inheritance diagram for blender::fn::CustomMF_Constant< T >:
blender::fn::MultiFunction

Public Member Functions

template<typename U >
 CustomMF_Constant (U &&value)
 
void call (IndexMask mask, MFParams params, MFContext UNUSED(context)) const override
 
uint64_t hash () const override
 
bool equals (const MultiFunction &other) 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 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

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

Detailed Description

template<typename T>
class blender::fn::CustomMF_Constant< T >

Generates a multi-function that outputs a constant value.

Definition at line 615 of file FN_multi_function_builder.hh.

Constructor & Destructor Documentation

◆ CustomMF_Constant()

template<typename T >
template<typename U >
blender::fn::CustomMF_Constant< T >::CustomMF_Constant ( U &&  value)
inline

Member Function Documentation

◆ call()

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

Definition at line 629 of file FN_multi_function_builder.hh.

References mask(), output, params, and T.

◆ equals()

template<typename T >
bool blender::fn::CustomMF_Constant< T >::equals ( const MultiFunction other) const
inlineoverride

Definition at line 644 of file FN_multi_function_builder.hh.

References type.

◆ hash()

template<typename T >
uint64_t blender::fn::CustomMF_Constant< T >::hash ( ) const
inlineoverridevirtual

Reimplemented from blender::fn::MultiFunction.

Definition at line 639 of file FN_multi_function_builder.hh.

References blender::get_default_hash().


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