|
Blender V5.3
|
#include <NOD_node_in_compute_context.hh>
Public Member Functions | |
#SocketInContext Inline Methods | |
| uint64_t | hash () const |
| ComputeContextHash | context_hash () const |
| const bNodeSocket * | operator-> () const |
| const bNodeSocket & | operator* () const |
| operator bool () const | |
| NodeInContext | owner_node () const |
Public Attributes | |
| const ComputeContext * | context = nullptr |
| const bNodeSocket * | socket = nullptr |
Friends | |
| bool | operator== (const SocketInContext &a, const SocketInContext &b) |
Utility struct to pair a socket with a compute context. This uniquely identifies a socket in a node-tree evaluation.
Definition at line 57 of file NOD_node_in_compute_context.hh.
|
inline |
Definition at line 143 of file NOD_node_in_compute_context.hh.
References context, and blender::ComputeContext::hash().
Referenced by hash(), and operator==.
|
inline |
Definition at line 138 of file NOD_node_in_compute_context.hh.
References context_hash(), blender::get_default_hash(), and socket.
|
inline |
Definition at line 158 of file NOD_node_in_compute_context.hh.
References socket.
|
inline |
Definition at line 153 of file NOD_node_in_compute_context.hh.
References socket.
|
inline |
Definition at line 148 of file NOD_node_in_compute_context.hh.
References socket.
|
inline |
Definition at line 163 of file NOD_node_in_compute_context.hh.
References context, and socket.
Referenced by blender::nodes::compute_context_for_closure_evaluation(), blender::nodes::find_origin_index_menu_switch(), blender::nodes::find_origin_sockets_through_contexts(), blender::nodes::find_target_sockets_through_contexts(), blender::nodes::switch_node_inference_utils::is_socket_selected__mix_node(), and blender::nodes::target_socket_evaluates_closure().
|
friend |
Two sockets in context compare equal if their context hash is equal, not the pointer to the context. This is important as the same compute context may be constructed multiple times.
Definition at line 73 of file NOD_node_in_compute_context.hh.
References b, context_hash(), and socket.
| const ComputeContext* blender::nodes::SocketInContext::context = nullptr |
Definition at line 58 of file NOD_node_in_compute_context.hh.
Referenced by blender::nodes::compute_context_for_closure_evaluation(), context_hash(), blender::nodes::inverse_eval::find_local_inverse_eval_targets(), blender::nodes::find_origin_sockets_through_contexts(), blender::nodes::find_target_sockets_through_contexts(), and owner_node().
| const bNodeSocket* blender::nodes::SocketInContext::socket = nullptr |
Definition at line 59 of file NOD_node_in_compute_context.hh.
Referenced by blender::nodes::inverse_eval::backpropagate_socket_values(), blender::nodes::inverse_eval::find_local_inverse_eval_targets(), blender::nodes::find_origin_sockets_through_contexts(), blender::nodes::find_target_sockets_through_contexts(), hash(), operator bool(), operator*(), operator->(), operator==, owner_node(), blender::nodes::inverse_eval::propagate_socket_elem(), and blender::nodes::inverse_eval::propagate_value_elem_filtered().