MayaFlux 0.2.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 644 of file Logic.cpp.

645{
653
654 if (m_input_node)
655 m_input_node->save_state();
656
657 m_state_saved = true;
658}
std::vector< uint8_t > m_saved_history_ring
Definition Logic.hpp:619
double m_temporal_time
Time tracking for temporal mode.
Definition Logic.hpp:582
std::shared_ptr< Node > m_input_node
Input node for processing.
Definition Logic.hpp:585
bool m_edge_detected
Whether an edge was detected in the last processing.
Definition Logic.hpp:580
std::vector< uint8_t > m_history_ring
Ring buffer for history storage.
Definition Logic.hpp:586
bool m_hysteresis_state
State for hysteresis operator.
Definition Logic.hpp:581
size_t m_history_count
Number of valid entries in the history buffer.
Definition Logic.hpp:573
size_t m_history_head
Head index for the history ring buffer.
Definition Logic.hpp:572
bool m_state_saved
tracks if the node's state has been saved by a snapshot operation
Definition Node.hpp:426
double m_last_output
The most recent sample value generated by this oscillator.
Definition Node.hpp:374

References m_edge_detected, m_history_count, m_history_head, m_history_ring, m_hysteresis_state, m_input_node, MayaFlux::Nodes::Node::m_last_output, m_saved_edge_detected, m_saved_history_count, m_saved_history_head, m_saved_history_ring, m_saved_hysteresis_state, m_saved_last_output, m_saved_temporal_time, MayaFlux::Nodes::Node::m_state_saved, and m_temporal_time.