MayaFlux 0.1.0
Digital-First Multimedia Processing Framework
Loading...
Searching...
No Matches
MayaFlux::Nodes::BinaryOpContext Class Reference

Specialized context for binary operation callbacks. More...

#include <NodeStructure.hpp>

+ Inheritance diagram for MayaFlux::Nodes::BinaryOpContext:
+ Collaboration diagram for MayaFlux::Nodes::BinaryOpContext:

Public Member Functions

 BinaryOpContext (double value, double lhs_value, double rhs_value)
 Constructs a BinaryOpContext with the current operation state.
 
- Public Member Functions inherited from MayaFlux::Nodes::NodeContext
virtual ~NodeContext ()=default
 
template<typename T >
T * as ()
 Safely cast to a derived context type.
 

Public Attributes

double lhs_value
 The value from the left-hand side node.
 
double rhs_value
 The value from the right-hand side node.
 
- Public Attributes inherited from MayaFlux::Nodes::NodeContext
double value
 Current sample value.
 
std::string type_id
 Type identifier for runtime type checking.
 

Additional Inherited Members

- Protected Member Functions inherited from MayaFlux::Nodes::NodeContext
 NodeContext (double value, const std::string &type)
 Protected constructor for NodeContext.
 

Detailed Description

Specialized context for binary operation callbacks.

BinaryOpContext extends the base NodeContext to provide detailed information about a binary operation's inputs and output to callbacks. It includes the individual values from both the left and right nodes that were combined to produce the final output value.

This rich context enables callbacks to perform sophisticated analysis and monitoring of signal combinations, such as:

  • Tracking the relative contributions of each input signal
  • Implementing adaptive responses based on input relationships
  • Detecting specific interaction patterns between signals
  • Creating visualizations that show both inputs and their combination

Definition at line 209 of file NodeStructure.hpp.


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