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

289{
290 if (m_token_roots[token].find(channel) == m_token_roots[token].end()) {
291 m_token_roots[token][channel] = std::make_shared<RootNode>(token, channel);
292 }
293}
static MayaFlux::Nodes::ProcessingToken token
Definition Timers.cpp:8
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, and token.

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

+ Here is the caller graph for this function: