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

◆ operator>>()

std::shared_ptr< Node > MayaFlux::Nodes::operator>> ( std::shared_ptr< Node lhs,
std::shared_ptr< Node rhs 
)

Connects two nodes in series (pipeline operator)

Parameters
lhsSource node
rhsTarget node
Returns
The target node for further chaining

Creates a connection where the output of the left-hand node becomes the input to the right-hand node. This allows for intuitive creation of processing chains:

auto chain = generator >> transformer >> output;

The returned node is the right-hand node, allowing for further chaining of operations.

Definition at line 7 of file NodeOperators.cpp.

8{
9 auto chain = std::make_shared<ChainNode>(lhs, rhs);
10 chain->initialize();
11 return chain;
12}