MayaFlux 0.4.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 561 of file NodeGraphManager.cpp.

562{
563 std::vector<std::shared_ptr<Network::NodeNetwork>> all_networks;
564
565 auto audio_it = m_audio_networks.find(token);
566 if (audio_it != m_audio_networks.end()) {
567 all_networks.insert(all_networks.end(),
568 audio_it->second.begin(),
569 audio_it->second.end());
570 }
571
572 auto token_it = m_token_networks.find(token);
573 if (token_it != m_token_networks.end()) {
574 all_networks.insert(all_networks.end(),
575 token_it->second.begin(),
576 token_it->second.end());
577 }
578
579 return all_networks;
580}
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: