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

358{
359 size_t count = 0;
360 auto it = m_token_roots.find(token);
361 if (it != m_token_roots.end()) {
362 for (const auto& [channel, root] : it->second) {
363 count += root->get_node_size();
364 }
365 }
366 return count;
367}
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 print_summary().

+ Here is the caller graph for this function: