|
MayaFlux 0.3.0
Digital-First Multimedia Processing Framework
|
| TemporalWrapper< T > MayaFlux::operator>> | ( | std::shared_ptr< T > | entity, |
| const TimeSpec & | spec | ||
| ) |
Creates a TemporalWrapper for an entity and a TimeSpec.
This operator overload implements the entity >> Time(seconds) syntax, which wraps the entity with a TimeSpec for subsequent temporal activation.
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++.
| T | The type of the entity to wrap. |
| entity | The entity to activate. |
| spec | The TimeSpec specifying the duration and channels. |
Definition at line 164 of file Temporal.hpp.