|
Blender V5.0
|
#include <FN_lazy_function_graph.hh>
Inherits blender::NonCopyable, and blender::NonMovable.
Inherited by blender::fn::lazy_function::FunctionNode, and blender::fn::lazy_function::InterfaceNode.
Public Member Functions | |
| std::string | name () const |
#Node Inline Methods | |
| bool | is_interface () const |
| bool | is_function () const |
| int | index_in_graph () const |
| Span< const InputSocket * > | inputs () const |
| Span< const OutputSocket * > | outputs () const |
| Span< InputSocket * > | inputs () |
| Span< OutputSocket * > | outputs () |
| const InputSocket & | input (int index) const |
| const OutputSocket & | output (int index) const |
| InputSocket & | input (int index) |
| OutputSocket & | output (int index) |
Protected Attributes | |
| const LazyFunction * | fn_ = nullptr |
| Span< InputSocket * > | inputs_ |
| Span< OutputSocket * > | outputs_ |
| int | index_in_graph_ = -1 |
| friend | Graph |
A Node has input and output sockets. Every node is either a FunctionNode or an InterfaceNode.
Definition at line 131 of file FN_lazy_function_graph.hh.
|
inline |
Definition at line 435 of file FN_lazy_function_graph.hh.
References index_in_graph_.
|
inline |
Definition at line 470 of file FN_lazy_function_graph.hh.
References inputs_.
|
inline |
Definition at line 460 of file FN_lazy_function_graph.hh.
References inputs_.
Referenced by blender::nodes::LazyFunctionForForeachGeometryElementZone::build_graph_contents(), blender::nodes::LazyFunctionForEvaluateClosureNode::initialize_execution_graph(), blender::nodes::LazyFunctionForEvaluateClosureNode::initialize_pass_through_graph(), blender::fn::lazy_function::tests::TEST(), and blender::fn::lazy_function::tests::TEST().
|
inline |
Definition at line 450 of file FN_lazy_function_graph.hh.
References inputs_.
|
inline |
Definition at line 440 of file FN_lazy_function_graph.hh.
References inputs_.
Referenced by blender::nodes::GeometryNodesLazyFunctionLogger::add_thread_id_debug_message().
|
inline |
|
inline |
Definition at line 425 of file FN_lazy_function_graph.hh.
References fn_.
| std::string Node::name | ( | ) | const |
Definition at line 168 of file lazy_function_graph.cc.
References fn_, and is_function().
Referenced by blender::nodes::GeometryNodesLazyFunctionLogger::dump_when_input_is_set_twice(), and blender::nodes::GeometryNodesLazyFunctionLogger::dump_when_outputs_are_missing().
|
inline |
Definition at line 475 of file FN_lazy_function_graph.hh.
References outputs_.
|
inline |
Definition at line 465 of file FN_lazy_function_graph.hh.
References outputs_.
Referenced by blender::nodes::LazyFunctionForForeachGeometryElementZone::build_graph_contents(), blender::nodes::LazyFunctionForEvaluateClosureNode::initialize_execution_graph(), blender::nodes::LazyFunctionForEvaluateClosureNode::initialize_pass_through_graph(), blender::fn::lazy_function::tests::TEST(), and blender::fn::lazy_function::tests::TEST().
|
inline |
Definition at line 455 of file FN_lazy_function_graph.hh.
References outputs_.
|
inline |
Definition at line 445 of file FN_lazy_function_graph.hh.
References outputs_.
Referenced by blender::nodes::GeometryNodesLazyFunctionLogger::add_thread_id_debug_message().
|
protected |
The function this node corresponds to. If this is null, the node is an InterfaceNode. The function is not owned by this Node nor by the Graph.
Definition at line 137 of file FN_lazy_function_graph.hh.
Referenced by blender::fn::lazy_function::Graph::add_function(), blender::fn::lazy_function::FunctionNode::function(), is_function(), is_interface(), and name().
|
protected |
Definition at line 154 of file FN_lazy_function_graph.hh.
|
protected |
An index that is set when calling #Graph::update_node_indices. This can be used to create efficient mappings from nodes to other data using just an array instead of a hash map.
This is technically not necessary but has better performance than always using hash maps.
Definition at line 152 of file FN_lazy_function_graph.hh.
Referenced by index_in_graph().
|
protected |
Input sockets of the node.
Definition at line 141 of file FN_lazy_function_graph.hh.
Referenced by blender::fn::lazy_function::Graph::add_function(), input(), input(), inputs(), and inputs().
|
protected |
Output sockets of the node.
Definition at line 145 of file FN_lazy_function_graph.hh.
Referenced by blender::fn::lazy_function::Graph::add_function(), output(), output(), outputs(), and outputs().