|
MayaFlux 0.1.0
Digital-First Multimedia Processing Framework
|
|
friend |
Grants the stream operator access to private members.
This friendship declaration allows the stream operator to access the private members of NodeTimeSpec, which is necessary for implementing the node >> time syntax.
| node | The processing node to activate |
| time_op | The NodeTimeSpec specifying the duration |
This operator overload implements the node >> Time(seconds) syntax, which activates a processing node for a specific duration. It's a more expressive way of representing timed activation compared to traditional function calls.
Example usage:
This is part of a broader pattern of using operator overloading to create a domain-specific language for computational flow programming within C++.
Definition at line 29 of file Operators.cpp.