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

156{
160
161 if (m_reset_trigger) {
162 m_reset_trigger->save_state();
163 }
164
165 m_state_saved = true;
166}
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.