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

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

Referenced by print_summary().

+ Here is the caller graph for this function: