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

◆ ensure_root_exists()

void MayaFlux::Nodes::NodeGraphManager::ensure_root_exists ( ProcessingToken  token,
unsigned int  channel 
)
private

Ensures a root node exists for the given token and channel.

Parameters
tokenProcessing domain
channelChannel index

Creates and registers a new root node if one does not already exist.

Definition at line 324 of file NodeGraphManager.cpp.

325{
326 if (m_token_roots[token].find(channel) == m_token_roots[token].end()) {
327 m_token_roots[token][channel] = std::make_shared<RootNode>(token, channel);
328 }
329}
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 m_token_roots.

Referenced by add_network(), ensure_token_exists(), get_root_node(), NodeGraphManager(), and route_network_to_channels().

+ Here is the caller graph for this function: