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

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

Referenced by process_token(), and terminate_active_processing().

+ Here is the caller graph for this function: