Blender V4.3
blender::fn::multi_function::CustomMF_GenericConstant Class Reference

#include <FN_multi_function_builder.hh>

Inherits blender::fn::multi_function::MultiFunction.

Public Member Functions

 CustomMF_GenericConstant (const CPPType &type, const void *value, bool make_value_copy)
 
 ~CustomMF_GenericConstant ()
 
void call (const IndexMask &mask, Params params, Context context) const override
 
uint64_t hash () const override
 
bool equals (const MultiFunction &other) const override
 
- Public Member Functions inherited from blender::fn::multi_function::MultiFunction
virtual ~MultiFunction ()
 
void call_auto (const IndexMask &mask, Params params, Context context) const
 
int param_amount () const
 
IndexRange param_indices () const
 
ParamType param_type (int param_index) const
 
StringRefNull param_name (int param_index) const
 
StringRefNull name () const
 
virtual std::string debug_name () const
 
const Signaturesignature () const
 
ExecutionHints execution_hints () const
 

Friends

template<typename T >
class CustomMF_Constant
 

Additional Inherited Members

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

Detailed Description

A multi-function that outputs the same value every time. The value is not owned by an instance of this function. If #make_value_copy is false, the caller is responsible for destructing and freeing the value.

Definition at line 659 of file FN_multi_function_builder.hh.

Constructor & Destructor Documentation

◆ CustomMF_GenericConstant()

blender::fn::multi_function::CustomMF_GenericConstant::CustomMF_GenericConstant ( const CPPType & type,
const void * value,
bool make_value_copy )

◆ ~CustomMF_GenericConstant()

blender::fn::multi_function::CustomMF_GenericConstant::~CustomMF_GenericConstant ( )

Member Function Documentation

◆ call()

void blender::fn::multi_function::CustomMF_GenericConstant::call ( const IndexMask & mask,
Params params,
Context context ) const
overridevirtual

◆ equals()

bool blender::fn::multi_function::CustomMF_GenericConstant::equals ( const MultiFunction & other) const
overridevirtual

Reimplemented from blender::fn::multi_function::MultiFunction.

Definition at line 49 of file multi_function_builder.cc.

References blender::CPPType::is_equal().

◆ hash()

uint64_t blender::fn::multi_function::CustomMF_GenericConstant::hash ( ) const
overridevirtual

Friends And Related Symbol Documentation

◆ CustomMF_Constant

template<typename T >
friend class CustomMF_Constant
friend

Definition at line 666 of file FN_multi_function_builder.hh.


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