MayaFlux 0.1.0
Digital-First Multimedia Processing Framework
Loading...
Searching...
No Matches
OutputTerminal Class Reference

Represents a terminal output sink in the processing graph. More...

#include <Operators.hpp>

+ Collaboration diagram for OutputTerminal:

Detailed Description

Represents a terminal output sink in the processing graph.

The OutputTerminal class is a singleton that represents the final output of the system. It's designed to be used with the stream operator (>>) to create a fluent, expressive syntax for connecting nodes to the system output.

This approach is inspired by flow-based programming paradigms, which use similar concepts to represent terminal sinks. It allows for a more intuitive way of expressing data flow compared to traditional function calls.

Example usage:

// Connect a processing node to the system output
process_node >> OutputTerminal::instance();
// Connect to a specific output channel
OutputTerminal::instance().channel = 1;
process_node >> OutputTerminal::instance();

The OutputTerminal is part of a broader pattern of using operator overloading to create a domain-specific language for computational flow programming within C++.


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