Blender
V3.3
|
#include <FN_multi_function_procedure.hh>
Public Member Functions | |
void | set_variable (MFVariable *variable) |
void | set_next (MFInstruction *instruction) |
#MFDestructInstruction Inline Methods | |
MFVariable * | variable () |
const MFVariable * | variable () const |
MFInstruction * | next () |
const MFInstruction * | next () const |
![]() | |
MFInstructionType | type () const |
Span< MFInstructionCursor > | prev () const |
Additional Inherited Members | |
![]() | |
MFInstructionType | type_ |
Vector< MFInstructionCursor > | prev_ |
friend | MFProcedure |
friend | MFCallInstruction |
friend | MFBranchInstruction |
friend | MFDestructInstruction |
friend | MFDummyInstruction |
friend | MFReturnInstruction |
A destruct instruction destructs a single variable. So the variable value will be uninitialized after this instruction. All variables that are not output variables of the procedure, have to be destructed before the procedure ends. Destructing early is generally a good thing, because it might help with memory buffer reuse, which decreases memory-usage and increases performance.
Definition at line 188 of file FN_multi_function_procedure.hh.
|
inline |
Definition at line 483 of file FN_multi_function_procedure.hh.
Referenced by blender::fn::MFProcedureExecutor::call(), and blender::fn::procedure_optimization::move_destructs_up().
|
inline |
Definition at line 488 of file FN_multi_function_procedure.hh.
void blender::fn::MFDestructInstruction::set_next | ( | MFInstruction * | instruction | ) |
Definition at line 149 of file multi_function_procedure.cc.
References blender::fn::MFInstruction::prev_.
Referenced by blender::fn::procedure_optimization::move_destructs_up().
void blender::fn::MFDestructInstruction::set_variable | ( | MFVariable * | variable | ) |
Definition at line 138 of file multi_function_procedure.cc.
References variable().
Referenced by blender::fn::MFProcedureBuilder::add_destruct().
|
inline |
Definition at line 473 of file FN_multi_function_procedure.hh.
Referenced by blender::fn::MFProcedureExecutor::call(), blender::fn::MFProcedureDotExport::instruction_to_string(), blender::fn::procedure_optimization::move_destructs_up(), and set_variable().
|
inline |
Definition at line 478 of file FN_multi_function_procedure.hh.