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

◆ get_root_node()

RootNode & MayaFlux::Nodes::NodeGraphManager::get_root_node ( ProcessingToken  token,
unsigned int  channel 
)

Gets or creates the root node for a specific token and channel.

Parameters
tokenProcessing domain
channelChannel index
Returns
Reference to the root node for the given token and channel

If the root node does not exist, it is created and registered.

Definition at line 349 of file NodeGraphManager.cpp.

350{
351 ensure_root_exists(token, channel);
352 return *m_token_roots[token][channel];
353}
void ensure_root_exists(ProcessingToken token, unsigned int channel)
Ensures a root node exists for the given token and channel.
std::unordered_map< ProcessingToken, std::unordered_map< unsigned int, std::shared_ptr< RootNode > > > m_token_roots
Multi-modal map of processing tokens to their channel root nodes.

References ensure_root_exists(), and m_token_roots.

Referenced by add_to_root(), MayaFlux::Kriya::TemporalActivation::cleanup_current_operation(), process_channel(), process_sample(), remove_from_root(), and MayaFlux::Portal::Forma::Inspector::root_node().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: