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

298{
299 std::vector<RootNode*> roots;
300
301 auto it = m_token_roots.find(token);
302 if (it != m_token_roots.end()) {
303 for (auto& [channel, root] : it->second) {
304 roots.push_back(root.get());
305 }
306 }
307
308 return roots;
309}
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: