MayaFlux 0.3.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 381 of file NodeGraphManager.cpp.

382{
383 std::vector<unsigned int> channels;
384 auto it = m_token_roots.find(token);
385 if (it != m_token_roots.end()) {
386 for (const auto& [channel, root] : it->second) {
387 channels.push_back(channel);
388 }
389 }
390 return channels;
391}
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.

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

+ Here is the caller graph for this function: