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

◆ notify_tick()

void MayaFlux::Nodes::Constant::notify_tick ( double  value)
overrideprotectedvirtual

Fire all registered on_tick() and on_tick_if() callbacks.

Parameters
valueMost recently emitted sample

Implements MayaFlux::Nodes::Node.

Definition at line 76 of file Constant.cpp.

77{
78 update_context(value);
79
80 for (auto& cb : m_callbacks) {
81 cb(m_context);
82 }
83 for (auto& [cb, cond] : m_conditional_callbacks) {
84 if (cond(m_context)) {
85 cb(m_context);
86 }
87 }
88}
void update_context(double value) override
Update m_context with the latest value.
Definition Constant.cpp:66
ConstantContext m_context
Definition Constant.hpp:135
std::vector< NodeHook > m_callbacks
Collection of standard callback functions.
Definition Node.hpp:406
std::vector< std::pair< NodeHook, NodeCondition > > m_conditional_callbacks
Collection of conditional callback functions with their predicates.
Definition Node.hpp:416

References MayaFlux::Nodes::Node::m_callbacks, MayaFlux::Nodes::Node::m_conditional_callbacks, m_context, and update_context().

Referenced by process_sample().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: