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

◆ get_active_tokens()

std::vector< ProcessingToken > MayaFlux::Nodes::NodeGraphManager::get_active_tokens ( ) const

Gets all currently active processing tokens (domains)

Returns
Vector of active ProcessingToken values

Returns a list of all processing domains that have at least one root node. Useful for introspection and for iterating over all active domains.

Definition at line 334 of file NodeGraphManager.cpp.

335{
336 std::vector<ProcessingToken> tokens;
337 for (const auto& [token, channels] : m_token_roots) {
338 if (!channels.empty()) {
339 tokens.push_back(token);
340 }
341 }
342 return tokens;
343}
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(), and process_all_tokens().

+ Here is the caller graph for this function: