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

◆ get_all_networks()

std::vector< std::shared_ptr< Network::NodeNetwork > > MayaFlux::Nodes::NodeGraphManager::get_all_networks ( ProcessingToken  token) const

Get all networks for a specific token across all channels.

Parameters
tokenProcessing domain
Returns
Vector of networks registered to this token

Definition at line 559 of file NodeGraphManager.cpp.

560{
561 std::vector<std::shared_ptr<Network::NodeNetwork>> all_networks;
562
563 auto audio_it = m_audio_networks.find(token);
564 if (audio_it != m_audio_networks.end()) {
565 all_networks.insert(all_networks.end(),
566 audio_it->second.begin(),
567 audio_it->second.end());
568 }
569
570 auto token_it = m_token_networks.find(token);
571 if (token_it != m_token_networks.end()) {
572 all_networks.insert(all_networks.end(),
573 token_it->second.begin(),
574 token_it->second.end());
575 }
576
577 return all_networks;
578}
std::unordered_map< ProcessingToken, std::vector< std::shared_ptr< Network::NodeNetwork > > > m_token_networks
Non-audio networks (token-level processing) For NONE, GRAPHICS_BIND, CUSTOM output modes.
std::unordered_map< ProcessingToken, std::vector< std::shared_ptr< Network::NodeNetwork > > > m_audio_networks
Audio-sink networks Only populated for networks with OutputMode::AUDIO_SINK.

References m_audio_networks, and m_token_networks.

Referenced by cleanup_completed_routing(), and update_routing_states_for_cycle().

+ Here is the caller graph for this function: