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
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 527 of file NodeGraphManager.cpp.

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