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

◆ save_state()

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

Saves the node's current state for later restoration Recursively cascades through all connected modulator nodes Protected - only NodeSourceProcessor and NodeBuffer can call.

Implements MayaFlux::Nodes::Node.

Definition at line 158 of file Counter.cpp.

159{
163
164 if (m_reset_trigger) {
165 m_reset_trigger->save_state();
166 }
167
168 m_state_saved = true;
169}
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.