Blender V5.3
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

SocketUsageInferencer * owner_ = nullptr

Detailed Description

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

Definition at line 38 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 82 of file socket_usage_inference.cc.

Member Function Documentation

◆ get_socket_value()

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

Definition at line 153 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 158 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 168 of file socket_usage_inference.cc.

References blender::BLI_assert().

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 109 of file socket_usage_inference.cc.

References is_socket_used(), and node.

◆ is_socket_used()

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

Definition at line 124 of file socket_usage_inference.cc.

References blender::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 95 of file socket_usage_inference.cc.

References node.

Member Data Documentation

◆ owner_

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

Definition at line 80 of file socket_usage_inference.cc.


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