Blender V5.0
blender::nodes::socket_usage_inference::SocketUsageInferencerImpl Class Reference

Public Member Functions

 SocketUsageInferencerImpl (const bNodeTree &tree, SocketValueInferencer &value_inferencer, bke::ComputeContextCache &compute_context_cache, const bool ignore_top_level_node_muting)
void mark_top_level_node_outputs_as_used ()
bool is_group_input_used (const int input_i)
bool is_socket_used (const SocketInContext &socket)
InferenceValue get_socket_value (const SocketInContext &socket)
bool is_disabled_group_output (const int output_i)
bool is_disabled_output (const SocketInContext &socket)

Public Attributes

SocketUsageInferencerowner_ = nullptr

Detailed Description

Utility class to simplify passing global state into all the functions during inferencing.

Definition at line 34 of file socket_usage_inference.cc.

Constructor & Destructor Documentation

◆ SocketUsageInferencerImpl()

blender::nodes::socket_usage_inference::SocketUsageInferencerImpl::SocketUsageInferencerImpl ( const bNodeTree & tree,
SocketValueInferencer & value_inferencer,
bke::ComputeContextCache & compute_context_cache,
const bool ignore_top_level_node_muting )
inline

Definition at line 78 of file socket_usage_inference.cc.

References tree.

Member Function Documentation

◆ get_socket_value()

InferenceValue blender::nodes::socket_usage_inference::SocketUsageInferencerImpl::get_socket_value ( const SocketInContext & socket)
inline

Definition at line 149 of file socket_usage_inference.cc.

◆ is_disabled_group_output()

bool blender::nodes::socket_usage_inference::SocketUsageInferencerImpl::is_disabled_group_output ( const int output_i)
inline

Definition at line 154 of file socket_usage_inference.cc.

References is_disabled_output().

◆ is_disabled_output()

bool blender::nodes::socket_usage_inference::SocketUsageInferencerImpl::is_disabled_output ( const SocketInContext & socket)
inline

Definition at line 164 of file socket_usage_inference.cc.

References BLI_assert, and blender::is_disabled().

Referenced by is_disabled_group_output().

◆ is_group_input_used()

bool blender::nodes::socket_usage_inference::SocketUsageInferencerImpl::is_group_input_used ( const int input_i)
inline

Definition at line 105 of file socket_usage_inference.cc.

References is_socket_used().

◆ is_socket_used()

bool blender::nodes::socket_usage_inference::SocketUsageInferencerImpl::is_socket_used ( const SocketInContext & socket)
inline

Definition at line 120 of file socket_usage_inference.cc.

References BLI_assert.

Referenced by is_group_input_used().

◆ mark_top_level_node_outputs_as_used()

void blender::nodes::socket_usage_inference::SocketUsageInferencerImpl::mark_top_level_node_outputs_as_used ( )
inline

Definition at line 91 of file socket_usage_inference.cc.

Member Data Documentation

◆ owner_

SocketUsageInferencer* blender::nodes::socket_usage_inference::SocketUsageInferencerImpl::owner_ = nullptr

Definition at line 76 of file socket_usage_inference.cc.


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