Blender V5.0
blender::fn::multi_function::DestructInstruction Class Reference

#include <FN_multi_function_procedure.hh>

Inherits blender::fn::multi_function::Instruction.

Public Member Functions

void set_variable (Variable *variable)
void set_next (Instruction *instruction)
#DestructInstruction Inline Methods
Variablevariable ()
const Variablevariable () const
Instructionnext ()
const Instructionnext () const
Public Member Functions inherited from blender::fn::multi_function::Instruction
InstructionType type () const
Span< InstructionCursorprev () const

Additional Inherited Members

Protected Attributes inherited from blender::fn::multi_function::Instruction
InstructionType type_
Vector< InstructionCursorprev_
friend Procedure
friend CallInstruction
friend BranchInstruction
friend DestructInstruction
friend DummyInstruction
friend ReturnInstruction

Detailed Description

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 181 of file FN_multi_function_procedure.hh.

Member Function Documentation

◆ next() [1/2]

Instruction * blender::fn::multi_function::DestructInstruction::next ( )
inline

◆ next() [2/2]

const Instruction * blender::fn::multi_function::DestructInstruction::next ( ) const
inline

Definition at line 470 of file FN_multi_function_procedure.hh.

◆ set_next()

void blender::fn::multi_function::DestructInstruction::set_next ( Instruction * instruction)

◆ set_variable()

void blender::fn::multi_function::DestructInstruction::set_variable ( Variable * variable)

◆ variable() [1/2]

◆ variable() [2/2]

const Variable * blender::fn::multi_function::DestructInstruction::variable ( ) const
inline

Definition at line 460 of file FN_multi_function_procedure.hh.


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