NodeRef Struct
Handle to a node within a runtime Graph, used by the fluent DSL. More...
Declaration
Included Headers
Public Operators Index
| operator NodeId () const | |
|
Implicit conversion to the underlying NodeId. More... | |
| PortRef | operator[] (const std::string &name) const |
|
Resolve a port by name; picks input or output unambiguously. More... | |
| PortRef | operator[] (const char *name) const |
|
operator[] overload accepting a C-string for convenience. More... | |
Public Member Functions Index
| PortRef | out () const |
|
Get the node's sole output port; throws if the node has multiple outputs. More... | |
| PortRef | out (const std::string &name) const |
|
Get the named output port. More... | |
| PortRef | in () const |
|
Get the node's sole input port; throws if the node has multiple inputs. More... | |
| PortRef | in (const std::string &name) const |
|
Get the named input port. More... | |
Public Member Attributes Index
| Graph * | g = nullptr |
|
Non-owning pointer to the host graph. More... | |
| NodeId | id = kInvalidNode |
|
Underlying node id. More... | |
Description
Handle to a node within a runtime Graph, used by the fluent DSL.
Wraps a non-owning Graph* and a NodeId. Implicitly converts to NodeId and exposes in()/out()/operator[] to obtain PortRef handles for connection.
- See Also
Definition at line 43 of file GraphDsl.h.
Public Operators
operator NodeId()
| inline |
Implicit conversion to the underlying NodeId.
Definition at line 48 of file GraphDsl.h.
operator[]()
| inline |
Resolve a port by name; picks input or output unambiguously.
Definition at line 61 of file GraphDsl.h.
operator[]()
| inline |
operator[] overload accepting a C-string for convenience.
Definition at line 63 of file GraphDsl.h.
Public Member Functions
in()
| inline |
Get the node's sole input port; throws if the node has multiple inputs.
Definition at line 57 of file GraphDsl.h.
in()
| inline |
Get the named input port.
Definition at line 59 of file GraphDsl.h.
out()
| inline |
Get the node's sole output port; throws if the node has multiple outputs.
Definition at line 53 of file GraphDsl.h.
out()
| inline |
Get the named output port.
Definition at line 55 of file GraphDsl.h.
Public Member Attributes
g
|
Non-owning pointer to the host graph.
Definition at line 44 of file GraphDsl.h.
id
|
The documentation for this struct was generated from the following file:
Generated via doxygen2docusaurus 2.0.0 by Doxygen 1.9.8.