MayaFlux 1.0.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 138 of file Counter.cpp.

139{
143
144 if (m_reset_trigger) {
145 m_reset_trigger->save_state();
146 }
147
148 m_state_saved = true;
149}
std::shared_ptr< Node > m_reset_trigger
Definition Counter.hpp:128
bool m_state_saved
tracks if the node's state has been saved by a snapshot operation
Definition Node.hpp:498
double m_last_output
The most recent sample value generated by this oscillator.
Definition Node.hpp:441

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.