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

◆ exclude_output_from_graph()

void MayaFlux::Nodes::Node::exclude_output_from_graph ( bool  excluded = true)
virtual

Exclude this node's output from the graph it is registered in.

Parameters
excludedTrue to process the node without adding its output to the graph, false to restore.

The node is processed every cycle as usual: its state advances, its hooks fire and get_last_output() stays valid for anything that reads it. Only its contribution to the sum of the root it is registered on is left out. Calls to process_sample() or process_batch() are not affected.

Definition at line 5 of file Node.cpp.

6{
7 if (excluded) {
9 } else {
11 }
12}
std::atomic< NodeState > m_state
Atomic state flag tracking the node's processing status.
Definition Node.hpp:543
@ OUTPUT_EXCLUDED
Node is processed but its output is left out of the graph.
Definition NodeSpec.hpp:48
void atomic_remove_flag(std::atomic< NodeState > &state, NodeState flag)
Atomically removes a flag from a node state.
void atomic_add_flag(std::atomic< NodeState > &state, NodeState flag)
Atomically adds a flag to a node state.

References MayaFlux::Nodes::atomic_add_flag(), MayaFlux::Nodes::atomic_remove_flag(), m_state, and MayaFlux::Nodes::OUTPUT_EXCLUDED.

+ Here is the call graph for this function: