Declaration
class simaai::neat::graph::nodes::StageNode { ... }
Base class
Public Member Typedefs Index
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={}) |
|
|
|
Public Member Functions Index
Private Member Attributes Index
Definition at line 35 of file StageNode.h.
Public Member Typedefs
OutputSpecFn
| using simaai::neat::graph::nodes::StageNode::OutputSpecFn = std::function<OutputSpec(const std::vector<OutputSpec>&, PortId)> |
|
StageExecutorFactory
| using simaai::neat::graph::nodes::StageNode::StageExecutorFactory = std::function<std::unique_ptr<simaai::neat::graph::StageExecutor>()> |
|
Public Constructors
StageNode()
Definition at line 40 of file StageNode.h.
41 std::vector<PortDesc> outputs, std::string label = {}, OutputSpecFn out_fn = {},
43 : kind_(std::move(kind)), label_(std::move(label)), inputs_(std::move(inputs)),
44 outputs_(std::move(outputs)), factory_(std::move(factory)),
45 output_spec_fn_(std::move(out_fn)), options_(std::move(options)) {}
Public Member Functions
backend()
| Backend simaai::neat::graph::nodes::StageNode::backend () |
|
inline
virtual
|
factory()
| const StageExecutorFactory& simaai::neat::graph::nodes::StageNode::factory () |
|
inline
|
input_ports()
| std::vector<PortDesc> simaai::neat::graph::nodes::StageNode::input_ports () |
|
inline
virtual
|
kind()
| std::string simaai::neat::graph::nodes::StageNode::kind () |
|
inline
virtual
|
Definition at line 51 of file StageNode.h.
51 std::string kind() const override {
52 return kind_;
53 }
options()
| const StageNodeOptions& simaai::neat::graph::nodes::StageNode::options () |
|
inline
|
output_ports()
| std::vector<PortDesc> simaai::neat::graph::nodes::StageNode::output_ports () |
|
inline
virtual
|
output_spec()
| OutputSpec simaai::neat::graph::nodes::StageNode::output_spec (const std::vector< OutputSpec > & inputs, PortId out_port) |
|
inline
virtual
|
Definition at line 67 of file StageNode.h.
67 OutputSpec output_spec(const std::vector<OutputSpec>& inputs, PortId out_port) const override {
68 if (output_spec_fn_)
69 return output_spec_fn_(inputs, out_port);
70 if (outputs_.size() == 1)
71 return outputs_.front().spec;
72 return OutputSpec{};
73 }
user_label()
| std::string simaai::neat::graph::nodes::StageNode::user_label () |
|
inline
virtual
|
Private Member Attributes
factory_
| StageExecutorFactory simaai::neat::graph::nodes::StageNode::factory_ |
|
inputs_
| std::vector<PortDesc> simaai::neat::graph::nodes::StageNode::inputs_ |
|
Definition at line 85 of file StageNode.h.
85 std::vector<PortDesc> inputs_;
kind_
| std::string simaai::neat::graph::nodes::StageNode::kind_ |
|
label_
| std::string simaai::neat::graph::nodes::StageNode::label_ |
|
options_
| StageNodeOptions simaai::neat::graph::nodes::StageNode::options_ |
|
output_spec_fn_
| OutputSpecFn simaai::neat::graph::nodes::StageNode::output_spec_fn_ |
|
outputs_
| std::vector<PortDesc> simaai::neat::graph::nodes::StageNode::outputs_ |
|
Definition at line 86 of file StageNode.h.
86 std::vector<PortDesc> outputs_;
The documentation for this class was generated from the following file:
Generated via doxygen2docusaurus 2.0.0 by Doxygen 1.9.1.