MayaFlux 1.0.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
private

Get all networks for a specific token across all channels.

Parameters
tokenProcessing domain
Returns
Vector of networks registered to this token

Definition at line 531 of file NodeGraphManager.cpp.

532{
533 std::vector<std::shared_ptr<Network::NodeNetwork>> all_networks;
534
535 auto audio_it = m_audio_networks.find(token);
536 if (audio_it != m_audio_networks.end()) {
537 all_networks.insert(all_networks.end(),
538 audio_it->second.begin(),
539 audio_it->second.end());
540 }
541
542 auto token_it = m_token_networks.find(token);
543 if (token_it != m_token_networks.end()) {
544 all_networks.insert(all_networks.end(),
545 token_it->second.begin(),
546 token_it->second.end());
547 }
548
549 return all_networks;
550}
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(), is_network_registered(), and update_routing_states_for_cycle().

+ Here is the caller graph for this function: