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 320 of file NodeGraphManager.cpp.

321{
323 return *m_token_roots[token][channel];
324}
uint32_t channel
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 channel, ensure_root_exists(), and m_token_roots.

Referenced by add_to_root(), MayaFlux::Kriya::TemporalActivation::cleanup_current_operation(), print_summary(), process_channel(), process_sample(), and remove_from_root().

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