MayaFlux 0.1.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 345 of file NodeGraphManager.cpp.

346{
347 std::vector<unsigned int> channels;
348 auto it = m_token_roots.find(token);
349 if (it != m_token_roots.end()) {
350 for (const auto& [channel, root] : it->second) {
351 channels.push_back(channel);
352 }
353 }
354 return channels;
355}
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: