Output Class
Pull handle for a node's output stream. More...
Declaration
Included Headers
Friends Index
| class | GraphRun |
Private Constructors Index
| Output (GraphRun *run, NodeId node) | |
Public Member Functions Index
| std::optional< Sample > | pull (int timeout_ms=-1, GraphRunStats *stats=nullptr) const |
|
Pull one sample. timeout_ms < 0 blocks indefinitely; returns nullopt on timeout. More... | |
| Sample | pull_or_throw (int timeout_ms=-1, GraphRunStats *stats=nullptr) const |
|
Like pull() but throws SessionError on timeout. More... | |
| NodeId | node_id () const |
Private Member Attributes Index
| GraphRun * | run_ = nullptr |
| NodeId | node_ = kInvalidNode |
Description
Pull handle for a node's output stream.
Obtained from GraphRun::output(node_id). Optionally records to a GraphRunStats collector on every successful pull.
Definition at line 196 of file GraphRun.h.
Public Member Functions
node_id()
| inline |
pull()
|
Pull one sample. timeout_ms < 0 blocks indefinitely; returns nullopt on timeout.
Definition at line 199 of file GraphRun.h.
pull_or_throw()
|
Like pull() but throws SessionError on timeout.
Definition at line 201 of file GraphRun.h.
Private Member Attributes
node_
|
Definition at line 212 of file GraphRun.h.
run_
|
Definition at line 211 of file GraphRun.h.
The documentation for this class was generated from the following file:
Generated via doxygen2docusaurus 2.0.0 by Doxygen 1.9.8.