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 414 of file NodeGraphManager.cpp.

415{
416 size_t count = 0;
417 auto it = m_token_roots.find(token);
418 if (it != m_token_roots.end()) {
419 for (const auto& [channel, root] : it->second) {
420 count += root->get_node_size();
421 }
422 }
423 return count;
424}
size_t 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.