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

262{
263 std::vector<RootNode*> roots;
264
265 auto it = m_token_roots.find(token);
266 if (it != m_token_roots.end()) {
267 for (auto& [channel, root] : it->second) {
268 roots.push_back(root.get());
269 }
270 }
271
272 return roots;
273}
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 process_token().

+ Here is the caller graph for this function: