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

◆ save_state()

void MayaFlux::Nodes::BinaryOpNode::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 305 of file NodeStructure.cpp.

306{
309
310 if (m_lhs)
311 m_lhs->save_state();
312 if (m_rhs)
313 m_rhs->save_state();
314
315 m_state_saved = true;
316}
std::shared_ptr< Node > m_lhs
The left-hand side node.
double m_last_rhs_value
The last output value from the right-hand side node.
double m_last_lhs_value
The last output value from the left-hand side node.
std::shared_ptr< Node > m_rhs
The right-hand side node.

References m_last_lhs_value, m_last_rhs_value, m_lhs, m_rhs, m_saved_last_lhs_value, m_saved_last_rhs_value, and m_state_saved.