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

◆ operator+()

MAYAFLUX_API std::shared_ptr< Nodes::Node > MayaFlux::operator+ ( const std::shared_ptr< Nodes::Node > &  lhs,
const std::shared_ptr< Nodes::Node > &  rhs 
)

Combines two nodes in parallel (addition)

Parameters
lhsFirst node
rhsSecond node
Returns
A BinaryOpNode that sums both 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 362 of file Graph.cpp.

363{
364 auto manager = get_node_graph_manager();
365 auto result = std::make_shared<Nodes::BinaryOpNode>(
366 lhs, rhs, [](double a, double b) { return a + b; }, *manager);
367 result->initialize();
368 return result;
369}
size_t a
size_t b
std::shared_ptr< Nodes::NodeGraphManager > get_node_graph_manager()
Gets the node graph manager from the default engine.
Definition Graph.cpp:35

References a, b, and get_node_graph_manager().

+ Here is the call graph for this function: