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

◆ get_all_root_nodes()

std::vector< RootNode * > MayaFlux::Nodes::NodeGraphManager::get_all_root_nodes ( ProcessingToken  token)

Get spans of root nodes for a token (for custom processing)

Parameters
tokenProcessing domain
Returns
Vector of RootNode pointers for that domain

Returns a vector of pointers to all root nodes for the specified processing domain. Useful for custom processing, introspection, or multi-channel operations.

Definition at line 328 of file NodeGraphManager.cpp.

329{
330 std::vector<RootNode*> roots;
331
332 auto it = m_token_roots.find(token);
333 if (it != m_token_roots.end()) {
334 for (auto& [channel, root] : it->second) {
335 roots.push_back(root.get());
336 }
337 }
338
339 return roots;
340}
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.

Referenced by process_token(), and terminate_active_processing().

+ Here is the caller graph for this function: