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

◆ get_networks()

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

510{
511 auto token_it = m_audio_networks.find(token);
512 if (token_it != m_audio_networks.end()) {
513 auto channel_it = token_it->second.find(channel);
514 if (channel_it != token_it->second.end()) {
515 return channel_it->second;
516 }
517 }
518 return {};
519}
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.

References m_audio_networks, and token.

Referenced by print_summary().

+ Here is the caller graph for this function: