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

◆ get_all_channels()

std::vector< unsigned int > MayaFlux::Nodes::NodeGraphManager::get_all_channels ( ProcessingToken  token) const

Gets all channel indices for a given processing token.

Parameters
tokenProcessing domain
Returns
Vector of channel indices that have root nodes for this token

Definition at line 357 of file NodeGraphManager.cpp.

358{
359 std::vector<unsigned int> channels;
360 auto it = m_token_roots.find(token);
361 if (it != m_token_roots.end()) {
362 for (const auto& [channel, root] : it->second) {
363 channels.push_back(channel);
364 }
365 }
366 return channels;
367}
static MayaFlux::Nodes::ProcessingToken token
Definition Timers.cpp:8
std::unordered_map< ProcessingToken, std::unordered_map< unsigned int, std::shared_ptr< RootNode > > > m_token_roots
Multi-modal map of processing tokens to their channel root nodes.

References m_token_roots, and token.

Referenced by get_channel_count(), print_summary(), and process_token_with_channel_data().

+ Here is the caller graph for this function: