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

◆ reset_processed_state()

void MayaFlux::Nodes::ChainNode::reset_processed_state ( )
overridevirtual

Resets the processed state of the node and any attached input nodes.

This method is used by the processing system to reset the processed state of the node at the end of each processing cycle. This ensures that all nodes are marked as unprocessed before the cycle next begins, allowing the system to correctly identify which nodes need to be processed.

Reimplemented from MayaFlux::Nodes::Node.

Definition at line 112 of file NodeStructure.cpp.

113{
115 if (m_Source)
116 m_Source->reset_processed_state();
117 if (m_Target)
118 m_Target->reset_processed_state();
119}
std::shared_ptr< Node > m_Source
The upstream node that processes input first.
std::shared_ptr< Node > m_Target
The downstream node that processes the source's output.
std::atomic< Utils::NodeState > m_state
Atomic state flag tracking the node's processing status.
Definition Node.hpp:463
void atomic_remove_flag(std::atomic< Utils::NodeState > &state, Utils::NodeState flag)
Atomically removes a flag from a node state.
@ PROCESSED
Node has been processed this cycle.
Definition Utils.hpp:34

References MayaFlux::Nodes::atomic_remove_flag(), m_Source, MayaFlux::Nodes::Node::m_state, m_Target, and MayaFlux::Utils::PROCESSED.

+ Here is the call graph for this function: