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

◆ ChainNode()

MayaFlux::Nodes::ChainNode::ChainNode ( const std::shared_ptr< Node > &  source,
const std::shared_ptr< Node > &  target 
)

Creates a new chain connecting source to target.

Parameters
sourceThe upstream node that processes input first
targetThe downstream node that processes the source's output

Definition at line 9 of file NodeStructure.cpp.

10 : m_Source(source)
11 , m_Target(target)
12 , m_is_initialized(false)
13{
14 if (!m_Source || !m_Target) {
15 error<std::invalid_argument>(
17 std::source_location::current(),
18 "ChainNode requires both source and target nodes to be non-null");
19 }
20}
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.
bool m_is_initialized
Flag indicating whether the chain has been properly initialized.
@ Init
Engine/subsystem initialization.
@ Nodes
DSP Generator and Filter Nodes, graph pipeline, node management.

References MayaFlux::Journal::Init, m_Source, m_Target, and MayaFlux::Journal::Nodes.