|
Blender V4.3
|
#include <FN_lazy_function_graph.hh>
Inherits blender::NonCopyable, and blender::NonMovable.
Inherited by blender::fn::lazy_function::InputSocket, and blender::fn::lazy_function::OutputSocket.
Public Member Functions | |
| std::string | name () const |
| std::string | detailed_name () const |
#Socket Inline Methods | |
| bool | is_input () const |
| bool | is_output () const |
| int | index () const |
| int | index_in_graph () const |
| InputSocket & | as_input () |
| OutputSocket & | as_output () |
| const InputSocket & | as_input () const |
| const OutputSocket & | as_output () const |
| const Node & | node () const |
| Node & | node () |
| const CPPType & | type () const |
Protected Attributes | |
| Node * | node_ |
| const CPPType * | type_ |
| bool | is_input_ |
| int | index_in_node_ |
| int | index_in_graph_ |
| friend | Graph |
A #Socket is the interface of a Node. Every #Socket is either an #InputSocket or #OutputSocket. Links can be created from output sockets to input sockets.
Definition at line 40 of file FN_lazy_function_graph.hh.
|
inline |
Definition at line 338 of file FN_lazy_function_graph.hh.
References BLI_assert, and is_input().
|
inline |
Definition at line 350 of file FN_lazy_function_graph.hh.
References BLI_assert, and is_input().
|
inline |
Definition at line 344 of file FN_lazy_function_graph.hh.
References BLI_assert, and is_output().
|
inline |
Definition at line 356 of file FN_lazy_function_graph.hh.
References BLI_assert, and is_output().
| std::string blender::fn::lazy_function::Socket::detailed_name | ( | ) | const |
Definition at line 160 of file lazy_function_graph.cc.
References index_in_node_, is_input_, blender::fn::lazy_function::Node::name(), name(), and node_.
|
inline |
Definition at line 328 of file FN_lazy_function_graph.hh.
References index_in_node_.
Referenced by blender::fn::lazy_function::GraphExecutor::GraphExecutor().
|
inline |
Definition at line 333 of file FN_lazy_function_graph.hh.
References index_in_graph_.
|
inline |
Definition at line 318 of file FN_lazy_function_graph.hh.
References is_input_.
Referenced by as_input(), and as_input().
|
inline |
Definition at line 323 of file FN_lazy_function_graph.hh.
References is_input_.
Referenced by as_output(), and as_output().
| std::string blender::fn::lazy_function::Socket::name | ( | ) | const |
Definition at line 146 of file lazy_function_graph.cc.
References blender::fn::lazy_function::FunctionNode::function(), index_in_node_, blender::fn::lazy_function::LazyFunction::input_name(), blender::fn::lazy_function::Node::is_function(), is_input_, node_, and blender::fn::lazy_function::LazyFunction::output_name().
Referenced by detailed_name(), blender::nodes::GeometryNodesLazyFunctionLogger::dump_when_input_is_set_twice(), blender::fn::lazy_function::GraphExecutor::input_name(), blender::fn::lazy_function::GraphExecutor::output_name(), and blender::fn::lazy_function::Graph::ToDotOptions::socket_name().
|
inline |
Definition at line 367 of file FN_lazy_function_graph.hh.
References node_.
|
inline |
Definition at line 362 of file FN_lazy_function_graph.hh.
References node_.
Referenced by blender::nodes::GeometryNodesLazyFunctionLogger::dump_when_input_is_set_twice(), and blender::fn::lazy_function::GraphExecutor::GraphExecutor().
|
inline |
Definition at line 372 of file FN_lazy_function_graph.hh.
References type_.
Referenced by blender::fn::lazy_function::GraphExecutor::GraphExecutor().
|
protected |
Definition at line 63 of file FN_lazy_function_graph.hh.
|
protected |
Index of the socket in the entire graph. Every socket has a different index.
Definition at line 61 of file FN_lazy_function_graph.hh.
Referenced by index_in_graph().
|
protected |
Index of the socket. E.g. 0 for the first input and the first output socket.
Definition at line 57 of file FN_lazy_function_graph.hh.
Referenced by blender::fn::lazy_function::Graph::add_function(), blender::fn::lazy_function::Graph::add_input(), blender::fn::lazy_function::Graph::add_output(), detailed_name(), index(), and name().
|
protected |
Indicates whether this is an #InputSocket or #OutputSocket.
Definition at line 53 of file FN_lazy_function_graph.hh.
Referenced by blender::fn::lazy_function::Graph::add_function(), blender::fn::lazy_function::Graph::add_input(), blender::fn::lazy_function::Graph::add_output(), detailed_name(), is_input(), is_output(), and name().
|
protected |
The node the socket belongs to.
Definition at line 45 of file FN_lazy_function_graph.hh.
Referenced by blender::fn::lazy_function::Graph::add_function(), blender::fn::lazy_function::Graph::add_input(), blender::fn::lazy_function::Graph::add_output(), detailed_name(), name(), node(), and node().
|
protected |
Data type of the socket. Only sockets with the same type can be linked.
Definition at line 49 of file FN_lazy_function_graph.hh.
Referenced by blender::fn::lazy_function::Graph::add_function(), blender::fn::lazy_function::Graph::add_input(), blender::fn::lazy_function::Graph::add_output(), and type().