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

◆ restore_state()

void MayaFlux::Nodes::Generator::Polynomial::restore_state ( )
overridevirtual

Restores the node's state from the last save Recursively cascades through all connected modulator nodes Protected - only NodeSourceProcessor and NodeBuffer can call.

Implements MayaFlux::Nodes::Node.

Definition at line 244 of file Polynomial.cpp.

245{
248
249 if (m_input_node)
250 m_input_node->restore_state();
251
252 m_state_saved = false;
253}
void restore_state(const std::vector< T > &state)
Restore previously saved state.
std::vector< double > m_saved_history_state
Saved state of the history buffer.
Memory::HistoryBuffer< double > m_history
Ring buffer for input/output history.
std::shared_ptr< Node > m_input_node
Input node for processing.
bool m_state_saved
tracks if the node's state has been saved by a snapshot operation
Definition Node.hpp:429
double m_last_output
The most recent sample value generated by this oscillator.
Definition Node.hpp:377

References m_history, m_input_node, MayaFlux::Nodes::Node::m_last_output, m_saved_history_state, m_saved_last_output, MayaFlux::Nodes::Node::m_state_saved, and MayaFlux::Memory::HistoryBuffer< T >::restore_state().

+ Here is the call graph for this function: