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

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
21public:
22 explicit StreamMetadata(StreamMetadataDefaults defaults = {});
23 void set_ports(const StagePorts& ports) override;
24 void on_input(StageMsg&& msg, std::vector<StageOutMsg>& out) override;
25
26private:
28 std::unordered_map<std::string, int64_t> next_seq_;
29 PortId out_port_ = kInvalidPort;
30};
31
32// Convenience: wrap StreamMetadata in a StageNode.
33std::shared_ptr<simaai::neat::graph::Node> StreamMetadataNode(StreamMetadataDefaults defaults = {},
34 std::string label = {});
35
36} // namespace simaai::neat::graph::nodes

Generated via doxygen2docusaurus 2.0.0 by Doxygen 1.9.1.