|
Blender V5.3
|
#include <FN_lazy_function_graph.hh>
Inherits blender::blender::NonCopyable, and blender::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 133 of file FN_lazy_function_graph.hh.
|
inline |
Definition at line 437 of file FN_lazy_function_graph.hh.
References index_in_graph_.
|
inline |
Definition at line 472 of file FN_lazy_function_graph.hh.
References inputs_.
|
inline |
Definition at line 462 of file FN_lazy_function_graph.hh.
References inputs_.
Referenced by blender::fn::lazy_function::tests::TEST_F(), and blender::fn::lazy_function::tests::TEST_F().
|
inline |
Definition at line 452 of file FN_lazy_function_graph.hh.
References inputs_.
|
inline |
Definition at line 442 of file FN_lazy_function_graph.hh.
References inputs_.
|
inline |
Definition at line 432 of file FN_lazy_function_graph.hh.
References fn_.
Referenced by name(), and blender::fn::lazy_function::Socket::name().
|
inline |
Definition at line 427 of file FN_lazy_function_graph.hh.
References fn_.
| std::string Node::name | ( | ) | const |
Definition at line 172 of file lazy_function_graph.cc.
References fn_, is_function(), and blender::fn::lazy_function::LazyFunction::name().
Referenced by blender::fn::lazy_function::Socket::detailed_name().
|
inline |
Definition at line 477 of file FN_lazy_function_graph.hh.
References outputs_.
|
inline |
Definition at line 467 of file FN_lazy_function_graph.hh.
References outputs_.
Referenced by blender::fn::lazy_function::tests::TEST_F(), and blender::fn::lazy_function::tests::TEST_F().
|
inline |
Definition at line 457 of file FN_lazy_function_graph.hh.
References outputs_.
|
inline |
Definition at line 447 of file FN_lazy_function_graph.hh.
References outputs_.
|
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 139 of file FN_lazy_function_graph.hh.
Referenced by blender::fn::lazy_function::FunctionNode::function(), is_function(), is_interface(), and name().
|
protected |
Definition at line 156 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 154 of file FN_lazy_function_graph.hh.
Referenced by index_in_graph().
|
protected |
|
protected |