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

◆ get_networks()

std::vector< std::shared_ptr< Network::NodeNetwork > > MayaFlux::Nodes::NodeGraphManager::get_networks ( ProcessingToken  token,
uint32_t  channel = 0 
) const

Get all networks for a specific token.

Parameters
tokenProcessing domain
Returns
Vector of networks registered to this token

Definition at line 520 of file NodeGraphManager.cpp.

521{
522 auto token_it = m_audio_networks.find(token);
523 if (token_it != m_audio_networks.end()) {
524 std::vector<std::shared_ptr<Network::NodeNetwork>> networks_on_channel;
525 for (const auto& network : token_it->second) {
526 if (network && network->is_registered_on_channel(channel)) {
527 networks_on_channel.push_back(network);
528 }
529 }
530 return networks_on_channel;
531 }
532 return {};
533}
static MayaFlux::Nodes::ProcessingToken token
Definition Timers.cpp:8
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 token.

Referenced by print_summary().

+ Here is the caller graph for this function: