Skip to main content

Output.h File

Output Node — terminal sink that exposes pulled samples to Run::pull(). More...

Included Headers

#include "builder/Node.h" #include <memory> #include <utility> #include <vector>

Namespaces Index

namespacesimaai
namespaceneat
namespacenodes

Classes Index

structOutputOptions

Buffering / sync options for the Output Node. More...

classOutput

Pull-side terminal sink. More...

Description

Output Node — terminal sink that exposes pulled samples to Run::pull().

Wraps an appsink-style element. Place at the end of a Session that uses async-mode (Run::pull()). For sync-mode pipelines that write directly to a file, use the file-output NodeGroups instead.

File Listing

The file content with the documentation metadata removed is:

1
10#pragma once
11
12#include "builder/Node.h"
13
14#include <memory>
15#include <utility>
16#include <vector>
17
18namespace simaai::neat {
19
29 int max_buffers = 4;
30 bool drop = false;
31 bool sync = false;
32
39};
40
46class Output final : public Node {
47public:
49 Output() = default;
51 explicit Output(OutputOptions opt) : opt_(std::move(opt)) {}
52
54 const OutputOptions& options() const {
55 return opt_;
56 }
57
59 std::string kind() const override {
60 return "Output";
61 }
63 NodeCapsBehavior caps_behavior() const override {
64 return NodeCapsBehavior::Dynamic;
65 }
67 std::string backend_fragment(int node_index) const override;
69 std::vector<std::string> element_names(int node_index) const override;
70
71private:
72 OutputOptions opt_;
73};
74
75} // namespace simaai::neat
76
77namespace simaai::neat::nodes {
79std::shared_ptr<simaai::neat::Node> Output(OutputOptions opt = {});
80} // namespace simaai::neat::nodes

Generated via doxygen2docusaurus 2.0.0 by Doxygen 1.9.8.