Blender
V3.3
|
#include <FN_multi_function_builder.hh>
Public Member Functions | |
CustomMF_GenericConstant (const CPPType &type, const void *value, bool make_value_copy) | |
~CustomMF_GenericConstant () | |
void | call (IndexMask mask, MFParams params, MFContext context) const override |
uint64_t | hash () const override |
bool | equals (const MultiFunction &other) const override |
![]() | |
virtual | ~MultiFunction () |
void | call_auto (IndexMask mask, MFParams params, MFContext context) 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 MFSignature & | signature () const |
ExecutionHints | execution_hints () const |
Friends | |
template<typename T > | |
class | CustomMF_Constant |
Additional Inherited Members | |
![]() | |
void | set_signature (const MFSignature *signature) |
virtual ExecutionHints | get_execution_hints () const |
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 581 of file FN_multi_function_builder.hh.
blender::fn::CustomMF_GenericConstant::CustomMF_GenericConstant | ( | const CPPType & | type, |
const void * | value, | ||
bool | make_value_copy | ||
) |
Definition at line 9 of file multi_function_builder.cc.
References MEM_mallocN_aligned, blender::fn::MultiFunction::set_signature(), blender::fn::MultiFunction::signature(), and type.
blender::fn::CustomMF_GenericConstant::~CustomMF_GenericConstant | ( | ) |
Definition at line 27 of file multi_function_builder.cc.
References MEM_freeN, and blender::fn::MFSignature::param_types.
|
overridevirtual |
Implements blender::fn::MultiFunction.
Definition at line 35 of file multi_function_builder.cc.
References blender::CPPType::fill_construct_indices(), mask(), output, and params.
|
override |
Definition at line 48 of file multi_function_builder.cc.
References blender::CPPType::is_equal().
|
overridevirtual |
Reimplemented from blender::fn::MultiFunction.
Definition at line 43 of file multi_function_builder.cc.
References blender::CPPType::hash_or_fallback().
|
friend |
Definition at line 588 of file FN_multi_function_builder.hh.