dsl Namespace
Definition
Classes Index
| struct | NodeRef |
|
Handle to a node within a runtime Graph, used by the fluent DSL. More... | |
| struct | PortRef |
|
Handle to a specific port on a node within a runtime Graph, used by the DSL. More... | |
Operators Index
| NodeRef | operator>> (const NodeRef &from, const NodeRef &to) |
|
DSL connector: a >> b connects a's sole output to b's sole input and returns b. More... | |
| NodeRef | operator>> (const PortRef &from, const NodeRef &to) |
|
DSL connector: connect a specific output port to to's sole input. More... | |
| NodeRef | operator>> (const NodeRef &from, const PortRef &to) |
|
DSL connector: connect from's sole output to a specific input port. More... | |
| NodeRef | operator>> (const PortRef &from, const PortRef &to) |
|
DSL connector: connect a specific output port to a specific input port. More... | |
Functions Index
| NodeRef | ref (Graph &g, NodeId id) |
|
Build a NodeRef for an existing node id in the given graph. More... | |
| NodeRef | add (Graph &g, Graph::NodePtr node) |
|
Add a node to the graph and return a NodeRef to the newly inserted node. More... | |
| bool | has_port (const std::vector< PortDesc > &ports, const std::string &name) |
|
Returns true iff ports contains a PortDesc whose name matches name. More... | |
| void | ensure_graph (const Graph *g, const char *what) |
|
Throws if g is null; used to validate DSL preconditions. More... | |
| const std::shared_ptr< Node > & | get_node (const Graph *g, NodeId id, const char *what) |
|
Resolve a node handle from a graph + id, throwing on null graph. More... | |
| void | connect_ports (const PortRef &from, const PortRef &to) |
|
Connect an output PortRef to an input PortRef. Throws on type/graph mismatches. More... | |
Operators
operator>>()
DSL connector: a >> b connects a's sole output to b's sole input and returns b.
Definition at line 171 of file GraphDsl.h.
operator>>()
DSL connector: connect a specific output port to to's sole input.
Definition at line 177 of file GraphDsl.h.
operator>>()
DSL connector: connect from's sole output to a specific input port.
Definition at line 183 of file GraphDsl.h.
operator>>()
DSL connector: connect a specific output port to a specific input port.
Definition at line 189 of file GraphDsl.h.
Functions
add()
| inline |
Add a node to the graph and return a NodeRef to the newly inserted node.
Definition at line 74 of file GraphDsl.h.
connect_ports()
Connect an output PortRef to an input PortRef. Throws on type/graph mismatches.
Definition at line 155 of file GraphDsl.h.
ensure_graph()
| inline |
Throws if g is null; used to validate DSL preconditions.
Definition at line 88 of file GraphDsl.h.
get_node()
| inline |
Resolve a node handle from a graph + id, throwing on null graph.
Definition at line 94 of file GraphDsl.h.
has_port()
| inline |
Returns true iff ports contains a PortDesc whose name matches name.
Definition at line 79 of file GraphDsl.h.
ref()
The documentation for this namespace was generated from the following file:
Generated via doxygen2docusaurus 2.0.0 by Doxygen 1.9.8.