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 171 of file Counter.cpp.

172{
176
177 if (m_reset_trigger) {
178 m_reset_trigger->restore_state();
179 }
180
181 m_state_saved = false;
182}
std::shared_ptr< Node > m_reset_trigger
Definition Counter.hpp:127
bool m_state_saved
tracks if the node's state has been saved by a snapshot operation
Definition Node.hpp:449
double m_last_output
The most recent sample value generated by this oscillator.
Definition Node.hpp:397

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.