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 
)

Combines two nodes in parallel (addition operator)

Parameters
lhsFirst node
rhsSecond node
Returns
A new node that outputs the sum of both nodes' outputs

Creates a new node that processes both input nodes and sums their outputs. This allows for mixing multiple data sources or transformations:

auto combined = primary_source + secondary_source;

The resulting node takes an input, passes it to both source nodes, and returns the sum of their outputs.

Definition at line 14 of file NodeOperators.cpp.

15{
16 auto result = std::make_shared<BinaryOpNode>(lhs, rhs, [](double a, double b) { return a + b; });
17 result->initialize();
18 return result;
19}