Skip to main content

StreamMetadata.h File

Stage executor to ensure stream metadata defaults. More...

Included Headers​

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

Namespaces Index​

namespacesimaai
namespaceneat
namespacegraph
namespacenodes

Classes Index​

classStreamMetadata

Stage executor that fills in stream metadata defaults on passing samples. More...

Description​

Stage executor to ensure stream metadata defaults.

File Listing​

The file content with the documentation metadata removed is:

1
6#pragma once
7
11
12#include <memory>
13#include <string>
14#include <unordered_map>
15#include <utility>
16#include <vector>
17
19
33public:
35 explicit StreamMetadata(StreamMetadataDefaults defaults = {});
37 void set_ports(const StagePorts& ports) override;
39 void on_input(StageMsg&& msg, std::vector<StageOutMsg>& out) override;
40
41private:
43 std::unordered_map<std::string, int64_t> next_seq_;
44 PortId out_port_ = kInvalidPort;
45};
46
54std::shared_ptr<simaai::neat::graph::Node> StreamMetadataNode(StreamMetadataDefaults defaults = {},
55 std::string label = {});
56
57} // namespace simaai::neat::graph::nodes

Generated via doxygen2docusaurus 2.0.0 by Doxygen 1.9.1.