|
MayaFlux 0.3.0
Digital-First Multimedia Processing Framework
|
Wraps an entity with a TimeSpec for temporal activation. More...
#include <Temporal.hpp>
Collaboration diagram for MayaFlux::TemporalWrapper< T >:Public Member Functions | |
| TemporalWrapper (const std::shared_ptr< T > &entity, TimeSpec spec) | |
| template<typename U > requires std::derived_from<U, T> | |
| TemporalWrapper (const TemporalWrapper< U > &other) | |
| std::shared_ptr< T > | entity () const |
| const TimeSpec & | spec () const |
Private Attributes | |
| std::shared_ptr< T > | m_entity |
| TimeSpec | m_spec |
Wraps an entity with a TimeSpec for temporal activation.
The TemporalWrapper class enables a fluent, expressive syntax for activating processing entities (nodes, buffers, networks) for a specific duration, using the stream operator (>>).
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 83 of file Temporal.hpp.