Blender  V3.3
Public Member Functions | List of all members
blender::fn::MFDestructInstruction Class Reference

#include <FN_multi_function_procedure.hh>

Inheritance diagram for blender::fn::MFDestructInstruction:
blender::fn::MFInstruction blender::NonCopyable blender::NonMovable

Public Member Functions

void set_variable (MFVariable *variable)
 
void set_next (MFInstruction *instruction)
 
#MFDestructInstruction Inline Methods
MFVariablevariable ()
 
const MFVariablevariable () const
 
MFInstructionnext ()
 
const MFInstructionnext () const
 
- Public Member Functions inherited from blender::fn::MFInstruction
MFInstructionType type () const
 
Span< MFInstructionCursorprev () const
 

Additional Inherited Members

- Protected Attributes inherited from blender::fn::MFInstruction
MFInstructionType type_
 
Vector< MFInstructionCursorprev_
 
friend MFProcedure
 
friend MFCallInstruction
 
friend MFBranchInstruction
 
friend MFDestructInstruction
 
friend MFDummyInstruction
 
friend MFReturnInstruction
 

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

Member Function Documentation

◆ next() [1/2]

MFInstruction * blender::fn::MFDestructInstruction::next ( )
inline

◆ next() [2/2]

const MFInstruction * blender::fn::MFDestructInstruction::next ( ) const
inline

Definition at line 488 of file FN_multi_function_procedure.hh.

◆ set_next()

void blender::fn::MFDestructInstruction::set_next ( MFInstruction instruction)

◆ set_variable()

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().

◆ variable() [1/2]

MFVariable * blender::fn::MFDestructInstruction::variable ( )
inline

◆ variable() [2/2]

const MFVariable * blender::fn::MFDestructInstruction::variable ( ) const
inline

Definition at line 478 of file FN_multi_function_procedure.hh.


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