Skip to main content

Output.h File

Output node for terminal pipeline output. More...

Included Headers

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

Namespaces Index

namespacesimaai
namespaceneat
namespacenodes

Classes Index

structOutputOptions
classOutput

Description

Output node for terminal pipeline output.

File Listing

The file content with the documentation metadata removed is:

1
6#pragma once
7
8#include "builder/Node.h"
9
10#include <memory>
11#include <utility>
12#include <vector>
13
14namespace simaai::neat {
15
17 int max_buffers = 1;
18 bool drop = false;
19 bool sync = false;
20
24};
25
26class Output final : public Node {
27public:
28 Output() = default;
29 explicit Output(OutputOptions opt) : opt_(std::move(opt)) {}
30
31 const OutputOptions& options() const {
32 return opt_;
33 }
34
35 std::string kind() const override {
36 return "Output";
37 }
38 NodeCapsBehavior caps_behavior() const override {
39 return NodeCapsBehavior::Dynamic;
40 }
41 std::string backend_fragment(int node_index) const override;
42 std::vector<std::string> element_names(int node_index) const override;
43
44private:
45 OutputOptions opt_;
46};
47
48} // namespace simaai::neat
49
50namespace simaai::neat::nodes {
51std::shared_ptr<simaai::neat::Node> Output(OutputOptions opt = {});
52} // namespace simaai::neat::nodes

Generated via doxygen2docusaurus 2.0.0 by Doxygen 1.9.1.