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

◆ get_last_context()

NodeContext & MayaFlux::Nodes::ChainNode::get_last_context ( )
overridevirtual

Retrieves the last created context object.

Returns
Reference to the last NodeContext object

This method provides access to the most recent NodeContext object created by the node. This context contains information about the node's state at the time of the last output generation.

Implements MayaFlux::Nodes::Node.

Definition at line 201 of file NodeChain.cpp.

202{
203 if (m_nodes.empty()) {
204 error<std::runtime_error>(
206 std::source_location::current(),
207 "ChainNode has no nodes when retrieving last context");
208 }
209 return m_nodes.back()->get_last_context();
210}
std::vector< std::shared_ptr< Node > > m_nodes
@ Runtime
General runtime operations (default fallback)
@ Nodes
DSP Generator and Filter Nodes, graph pipeline, node management.

References m_nodes, MayaFlux::Journal::Nodes, and MayaFlux::Journal::Runtime.