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

◆ get_all_networks()

std::vector< std::shared_ptr< 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 522 of file NodeGraphManager.cpp.

523{
524 std::vector<std::shared_ptr<NodeNetwork>> all_networks;
525
526 auto audio_it = m_audio_networks.find(token);
527 if (audio_it != m_audio_networks.end()) {
528 for (const auto& [channel, networks] : audio_it->second) {
529 all_networks.insert(all_networks.end(), networks.begin(), networks.end());
530 }
531 }
532
533 auto token_it = m_token_networks.find(token);
534 if (token_it != m_token_networks.end()) {
535 all_networks.insert(all_networks.end(),
536 token_it->second.begin(),
537 token_it->second.end());
538 }
539
540 return all_networks;
541}
static MayaFlux::Nodes::ProcessingToken token
Definition Timers.cpp:8
std::unordered_map< ProcessingToken, std::unordered_map< unsigned int, std::vector< std::shared_ptr< NodeNetwork > > > > m_audio_networks
Audio-sink networks (channel-routed) Only populated for networks with OutputMode::AUDIO_SINK.
std::unordered_map< ProcessingToken, std::vector< std::shared_ptr< NodeNetwork > > > m_token_networks
Non-audio networks (token-level processing) For NONE, GRAPHICS_BIND, CUSTOM output modes.

References m_audio_networks, m_token_networks, and token.