MayaFlux 0.3.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 182 of file NodeCombine.cpp.

183{
186
187 if (m_lhs)
188 m_lhs->save_state();
189 if (m_rhs)
190 m_rhs->save_state();
191
192 m_state_saved = true;
193}
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.