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

◆ save_state()

void MayaFlux::Nodes::Generator::Logic::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 623 of file Logic.cpp.

624{
630
631 if (m_input_node)
632 m_input_node->save_state();
633
634 m_state_saved = true;
635}
std::deque< bool > m_history
Buffer of input values for feedforward mode.
Definition Logic.hpp:565
double m_temporal_time
Time tracking for temporal mode.
Definition Logic.hpp:574
std::shared_ptr< Node > m_input_node
Input node for processing.
Definition Logic.hpp:577
std::deque< bool > m_saved_history
Definition Logic.hpp:603
bool m_edge_detected
Whether an edge was detected in the last processing.
Definition Logic.hpp:572
bool m_hysteresis_state
State for hysteresis operator.
Definition Logic.hpp:573
double m_last_output
The most recent sample value generated by this oscillator.
Definition Node.hpp:378

References m_edge_detected, m_history, m_hysteresis_state, m_input_node, MayaFlux::Nodes::Node::m_last_output, m_saved_edge_detected, m_saved_history, m_saved_hysteresis_state, m_saved_last_output, m_saved_temporal_time, m_state_saved, and m_temporal_time.