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

◆ restore_state()

void MayaFlux::Nodes::Generator::Counter::restore_state ( )
overridevirtual

Restores the node's state from the last save Recursively cascades through all connected modulator nodes Protected - only NodeSourceProcessor and NodeBuffer can call.

Implements MayaFlux::Nodes::Node.

Definition at line 168 of file Counter.cpp.

169{
173
174 if (m_reset_trigger) {
175 m_reset_trigger->restore_state();
176 }
177
178 m_state_saved = false;
179}
std::shared_ptr< Node > m_reset_trigger
Definition Counter.hpp:129
bool m_state_saved
tracks if the node's state has been saved by a snapshot operation
Definition Node.hpp:457
double m_last_output
The most recent sample value generated by this oscillator.
Definition Node.hpp:405

References m_count, MayaFlux::Nodes::Node::m_last_output, m_last_trigger_value, m_reset_trigger, m_saved_count, m_saved_last_output, m_saved_last_trigger_value, and MayaFlux::Nodes::Node::m_state_saved.