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

◆ get_node_count()

size_t MayaFlux::Nodes::NodeGraphManager::get_node_count ( ProcessingToken  token) const

Gets the total number of nodes registered under a given token.

Parameters
tokenProcessing domain
Returns
Total number of nodes across all channels for this token

Definition at line 395 of file NodeGraphManager.cpp.

396{
397 size_t count = 0;
398 auto it = m_token_roots.find(token);
399 if (it != m_token_roots.end()) {
400 for (const auto& [channel, root] : it->second) {
401 count += root->get_node_size();
402 }
403 }
404 return count;
405}
Eigen::Index count
uint32_t channel
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 channel, count, and m_token_roots.

Referenced by print_summary().

+ Here is the caller graph for this function: