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

◆ BinaryOpNode() [2/2]

MayaFlux::Nodes::BinaryOpNode::BinaryOpNode ( const std::shared_ptr< Node > &  lhs,
const std::shared_ptr< Node > &  rhs,
CombineFunc  func,
NodeGraphManager manager,
ProcessingToken  token = ProcessingToken::AUDIO_RATE 
)

Creates a new binary operation node (managed)

Parameters
lhsThe left-hand side node
rhsThe right-hand side node
funcThe function to combine the outputs of both nodes
managerGraph manager for registration
tokenProcessing domain for registration (default AUDIO_RATE)

Common combine functions include:

  • Addition: [](double a, double b) { return a + b; }
  • Multiplication: [](double a, double b) { return a * b; }

Definition at line 51 of file NodeCombine.cpp.

57 : BinaryOpNode(lhs, rhs, std::move(func))
58{
59 m_manager = &manager;
60 m_token = token;
61}
ProcessingToken m_token
The processing token indicating the domain in which this node operates.
NodeGraphManager * m_manager
Reference to the node graph manager for registration and callback management.
BinaryOpNode(const std::shared_ptr< Node > &lhs, const std::shared_ptr< Node > &rhs, CombineFunc func)
Creates a new binary operation node.

References m_manager, and m_token.