Skip to main content

FanOut.h File

Stage executor that fans out a sample to multiple output ports. More...

Included Headers

#include "graph/StageExecutor.h" #include "graph/nodes/StageNode.h" #include <memory> #include <string> #include <utility> #include <vector>

Namespaces Index

namespacesimaai
namespaceneat
namespacegraph
namespacenodes

Classes Index

structFanOutOptions

Configuration for a FanOut stage executor. More...

classFanOut

Stage executor that duplicates each incoming sample to multiple output ports. More...

Description

Stage executor that fans out a sample to multiple output ports.

File Listing

The file content with the documentation metadata removed is:

1
6#pragma once
7
10
11#include <memory>
12#include <string>
13#include <utility>
14#include <vector>
15
17
26 std::vector<std::string> outputs;
27};
28
41public:
43 explicit FanOut(FanOutOptions opt);
44
46 void set_ports(const StagePorts& ports) override;
48 void on_input(StageMsg&& msg, std::vector<StageOutMsg>& out) override;
49
50private:
51 void validate_outputs_(const StagePorts& ports);
52
53 FanOutOptions opt_;
54 std::vector<PortId> out_ports_;
55 bool validated_ = false;
56};
57
66std::shared_ptr<simaai::neat::graph::Node>
67FanOutNode(std::vector<std::string> outputs, std::string label = {}, std::string input = "in");
68
69} // namespace simaai::neat::graph::nodes

Generated via doxygen2docusaurus 2.0.0 by Doxygen 1.9.8.