MayaFlux 0.1.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 282 of file NodeGraphManager.cpp.

283{
284 ensure_root_exists(token, channel);
285 return *m_token_roots[token][channel];
286}
static MayaFlux::Nodes::ProcessingToken token
Definition Timers.cpp:8
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(), m_token_roots, and token.

Referenced by add_to_root(), MayaFlux::Kriya::NodeTimer::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: