Skip to main content

graphs Namespace

Definition

namespace simaai::neat::graphs { ... }

Namespaces Index

namespacedetail

Functions Index

GraphBranch (std::string input, std::vector< std::string > outputs)

Build a reusable Graph that branches one named input to several named outputs. More...

GraphCombine (std::vector< std::string > inputs, std::string output, CombinePolicy policy=CombinePolicy::ByFrame)

Build a reusable Graph that combines several named inputs into one named output. More...

Functions

Branch()

Graph simaai::neat::graphs::Branch (std::string input, std::vector< std::string > outputs)
inline

Build a reusable Graph that branches one named input to several named outputs.

Example:

 Graph branch = graphs::Branch("image", {"preview", "model"});

Conceptually:

 image -> preview
  -> model

The returned object is a normal public Graph containing one Input(input), one Output(name) per requested output, and endpoint connect(input, output) edges. At build time the compiler lowers connected branches to the internal shallow FanOut runtime machinery, rather than inserting appsrc/appsink boundaries, while preserving the public endpoint names for Run::pull(name), diagnostics, and visualization.

Definition at line 63 of file Fragments.h.

Combine()

Graph simaai::neat::graphs::Combine (std::vector< std::string > inputs, std::string output, CombinePolicy policy=CombinePolicy::ByFrame)
inline

Build a reusable Graph that combines several named inputs into one named output.

Example:

 Graph join = graphs::Combine({"left", "right"}, "pair", CombinePolicy::ByFrame);

policy defines how samples from the named inputs are matched:

The helper only constructs public Graph topology. The compiler is responsible for lowering the multi-producer output to the internal combine stage for ByFrame / ByPts or the internal stream scheduler for RoundRobin.

Definition at line 106 of file Fragments.h.


The documentation for this namespace was generated from the following file:


Generated via doxygen2docusaurus 2.0.0 by Doxygen 1.9.8.