StagePorts Struct
Resolved port-id table for a stage — populated by the runtime before start(). More...
Declaration
Included Headers
Public Member Functions Index
| PortId | in_port (const std::string &name) const |
|
Look up the id of an input port by name; returns kInvalidPort if missing. More... | |
| PortId | out_port (const std::string &name) const |
|
Look up the id of an output port by name; returns kInvalidPort if missing. More... | |
| PortId | only_input () const |
|
Convenience: returns the sole input port if there's exactly one, else kInvalidPort. More... | |
| PortId | only_output () const |
|
Convenience: returns the sole output port if there's exactly one, else kInvalidPort. More... | |
Public Member Attributes Index
| std::unordered_map< std::string, PortId > | in |
| std::unordered_map< std::string, PortId > | out |
Description
Resolved port-id table for a stage — populated by the runtime before start().
Stage authors should cache the relevant port-ids in set_ports() rather than looking them up by name on every on_input() call.
Definition at line 76 of file StageExecutor.h.
Public Member Functions
in_port()
| inline |
only_input()
| inline |
Convenience: returns the sole input port if there's exactly one, else kInvalidPort.
Definition at line 93 of file StageExecutor.h.
only_output()
| inline |
Convenience: returns the sole output port if there's exactly one, else kInvalidPort.
Definition at line 98 of file StageExecutor.h.
out_port()
| inline |
Public Member Attributes
in
|
Input ports keyed by name.
Definition at line 77 of file StageExecutor.h.
out
|
Output ports keyed by name.
Definition at line 78 of file StageExecutor.h.
The documentation for this struct was generated from the following file:
Generated via doxygen2docusaurus 2.0.0 by Doxygen 1.9.8.