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

◆ is_initialized()

bool MayaFlux::Nodes::BinaryOpNode::is_initialized ( ) const

Definition at line 352 of file NodeStructure.cpp.

353{
354 auto lstate = m_lhs->m_state.load();
355 auto rstate = m_rhs->m_state.load();
356 bool is_lhs_registered = m_lhs ? (lstate & Utils::NodeState::ACTIVE) : false;
357 bool is_rhs_registered = m_rhs ? (rstate & Utils::NodeState::ACTIVE) : false;
358 return !is_lhs_registered && !is_rhs_registered;
359}
std::shared_ptr< Node > m_lhs
The left-hand side node.
std::shared_ptr< Node > m_rhs
The right-hand side node.
@ ACTIVE
Engine is processing this node.
Definition Utils.hpp:30

References MayaFlux::Utils::ACTIVE, m_lhs, and m_rhs.

Referenced by process_sample().

+ Here is the caller graph for this function: