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

◆ remove_network()

void MayaFlux::Nodes::NodeGraphManager::remove_network ( const std::shared_ptr< Network::NodeNetwork > &  network,
ProcessingToken  token 
)

Remove a network from a processing token.

Parameters
networkNetwork to remove
tokenProcessing domain
channelChannel index within that domain, optional

Definition at line 489 of file NodeGraphManager.cpp.

491{
492 if (!network) {
493 return;
494 }
495
496 if (auto it = m_audio_networks.find(token); it != m_audio_networks.end()) {
497 std::erase_if(it->second, [&](const auto& n) { return n == network; });
498 }
499
500 if (auto it = m_token_networks.find(token); it != m_token_networks.end()) {
501 std::erase_if(it->second, [&](const auto& n) { return n == network; });
502 }
503
505}
Core::GlobalNetworkConfig network
Definition Config.cpp:43
std::unordered_map< ProcessingToken, std::vector< std::shared_ptr< Network::NodeNetwork > > > m_token_networks
Non-audio networks (token-level processing) For NONE, GRAPHICS_BIND, CUSTOM output modes.
std::unordered_map< ProcessingToken, std::vector< std::shared_ptr< Network::NodeNetwork > > > m_audio_networks
Audio-sink networks Only populated for networks with OutputMode::AUDIO_SINK.
void unregister_network_global(const std::shared_ptr< Network::NodeNetwork > &network)
Unregister network globally.

References m_audio_networks, m_token_networks, network, and unregister_network_global().

Referenced by MayaFlux::Kriya::TemporalActivation::cleanup_current_operation().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: