StageNode Class
Generic runtime-graph node that adapts a StageExecutor factory into a Node. More...
Declaration
Included Headers
Base class
| class | Node |
|
Base class for hybrid graph nodes. More... | |
Public Member Typedefs Index
| using | StageExecutorFactory = std::function< std::unique_ptr< simaai::neat::graph::StageExecutor >()> |
|
Factory producing a fresh StageExecutor for each instance the runtime needs. More... | |
| using | OutputSpecFn = std::function< OutputSpec(const std::vector< OutputSpec > &, PortId)> |
|
Resolver that returns the OutputSpec for a given output port from the per-input specs. More... | |
Public Constructors Index
| StageNode (std::string kind, StageExecutorFactory factory, std::vector< PortDesc > inputs, std::vector< PortDesc > outputs, std::string label={}, OutputSpecFn out_fn={}, StageNodeOptions options={}) | |
|
Construct a StageNode bundling kind, executor factory, port descriptors, and options. More... | |
Public Member Functions Index
| Backend | backend () const override |
|
Always returns Backend::Stage. More... | |
| std::string | kind () const override |
|
Returns the stage's kind label. More... | |
| std::string | user_label () const override |
|
Returns the user-supplied label (or empty). More... | |
| std::vector< PortDesc > | input_ports () const override |
|
Returns the configured input ports. More... | |
| std::vector< PortDesc > | output_ports () const override |
|
Returns the configured output ports. More... | |
| OutputSpec | output_spec (const std::vector< OutputSpec > &inputs, PortId out_port) const override |
|
Resolves an output port's spec via the user-supplied resolver, falling back to the single output's static spec. More... | |
| const StageExecutorFactory & | factory () const |
|
Access the executor factory. More... | |
| const StageNodeOptions & | options () const |
|
Access the stage options. More... | |
Private Member Attributes Index
| std::string | kind_ |
| std::string | label_ |
| std::vector< PortDesc > | inputs_ |
| std::vector< PortDesc > | outputs_ |
| StageExecutorFactory | factory_ |
| OutputSpecFn | output_spec_fn_ |
| StageNodeOptions | options_ |
Description
Generic runtime-graph node that adapts a StageExecutor factory into a Node.
The most generic stage adapter — given a StageExecutorFactory, an input/output port description, and an Options bundle, exposes the stage as a runtime graph Node. Most concrete stages (FanOut, JoinBundle, Map, ...) have helpers that build a StageNode around their executor.
- See Also
- See Also
Definition at line 61 of file StageNode.h.
Public Member Typedefs
OutputSpecFn
|
Resolver that returns the OutputSpec for a given output port from the per-input specs.
Definition at line 66 of file StageNode.h.
StageExecutorFactory
|
Factory producing a fresh StageExecutor for each instance the runtime needs.
Definition at line 64 of file StageNode.h.
Public Constructors
StageNode()
| inline |
Construct a StageNode bundling kind, executor factory, port descriptors, and options.
Definition at line 69 of file StageNode.h.
Public Member Functions
backend()
| inline virtual |
Always returns Backend::Stage.
Definition at line 77 of file StageNode.h.
factory()
| inline |
Access the executor factory.
Definition at line 112 of file StageNode.h.
input_ports()
| inline virtual |
Returns the configured input ports.
Definition at line 92 of file StageNode.h.
kind()
| inline virtual |
Returns the stage's kind label.
Definition at line 82 of file StageNode.h.
options()
| inline |
Access the stage options.
Definition at line 116 of file StageNode.h.
output_ports()
| inline virtual |
Returns the configured output ports.
Definition at line 97 of file StageNode.h.
output_spec()
| inline virtual |
Resolves an output port's spec via the user-supplied resolver, falling back to the single output's static spec.
Definition at line 103 of file StageNode.h.
user_label()
| inline virtual |
Returns the user-supplied label (or empty).
Definition at line 87 of file StageNode.h.
Private Member Attributes
factory_
|
Definition at line 125 of file StageNode.h.
inputs_
|
Definition at line 123 of file StageNode.h.
kind_
|
Definition at line 121 of file StageNode.h.
label_
|
Definition at line 122 of file StageNode.h.
options_
|
Definition at line 127 of file StageNode.h.
output_spec_fn_
|
Definition at line 126 of file StageNode.h.
outputs_
|
Definition at line 124 of file StageNode.h.
The documentation for this class was generated from the following file:
Generated via doxygen2docusaurus 2.0.0 by Doxygen 1.9.8.