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

◆ reset_processed_state()

template<size_t N = 0>
void MayaFlux::Nodes::CompositeOpNode< N >::reset_processed_state ( )
inlineoverridevirtual

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 463 of file NodeCombine.hpp.

464 {
466 for (auto& node : m_inputs) {
467 if (node)
468 node->reset_processed_state();
469 }
470 }
std::vector< std::shared_ptr< Node > > m_inputs
std::atomic< NodeState > m_state
Atomic state flag tracking the node's processing status.
Definition Node.hpp:468
@ PROCESSED
Node has been processed this cycle.
Definition NodeSpec.hpp:49
void atomic_remove_flag(std::atomic< NodeState > &state, NodeState flag)
Atomically removes a flag from a node state.

References MayaFlux::Nodes::atomic_remove_flag().

+ Here is the call graph for this function: