MayaFlux 1.0.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 419 of file NodeGraphManager.cpp.

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