DebugStream Struct
Streaming iterator over debug-mode pipeline outputs. More...
Declaration
Included Headers
Public Operators Index
| operator bool () const | |
|
True iff the stream is bound and usable. More... | |
Public Member Attributes Index
| std::function< std::optional< DebugOutput >(int)> | next |
|
Pull next output; arg is timeout_ms. More... | |
| std::function< void()> | close |
|
Tear down the underlying stream. More... | |
| OutputSpec | expected |
|
Expected output spec. More... | |
| OutputSpec | observed |
|
Spec observed at runtime. More... | |
| std::string | caps_string |
|
Payload caps string. More... | |
| bool | tensorizable = false |
|
True iff outputs are tensorizable. More... | |
| bool | unknown = false |
|
True iff payload type was unrecognised. More... | |
| std::shared_ptr< void > | state |
|
Keeps the underlying pipeline/stream alive. More... | |
Description
Streaming iterator over debug-mode pipeline outputs.
next(timeout_ms) returns the next captured output (or std::nullopt on timeout / end-of-stream). close() tears the underlying stream down. The state shared pointer keeps any backing pipeline alive for as long as the stream is held. The boolean conversion reports whether the stream is usable (i.e., whether next is bound).
Definition at line 71 of file DebugTypes.h.
Public Operators
operator bool()
| inline explicit |
True iff the stream is bound and usable.
Definition at line 82 of file DebugTypes.h.
Public Member Attributes
caps_string
|
close
|
Tear down the underlying stream.
Definition at line 73 of file DebugTypes.h.
expected
|
next
|
Pull next output; arg is timeout_ms.
Definition at line 72 of file DebugTypes.h.
observed
|
state
|
Keeps the underlying pipeline/stream alive.
Definition at line 79 of file DebugTypes.h.
tensorizable
|
True iff outputs are tensorizable.
Definition at line 77 of file DebugTypes.h.
unknown
|
True iff payload type was unrecognised.
Definition at line 78 of file DebugTypes.h.
The documentation for this struct was generated from the following file:
Generated via doxygen2docusaurus 2.0.0 by Doxygen 1.9.8.