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

◆ remove_all_hooks()

void MayaFlux::Nodes::Node::remove_all_hooks ( )
virtual

Removes all registered callbacks.

Unregisters all callbacks that were previously registered with on_tick() and on_tick_if(). After calling this method, no callbacks will be triggered when the node produces new output values.

This method is useful for completely resetting the node's callback system, such as when repurposing a node or preparing for cleanup.

Reimplemented in MayaFlux::Nodes::ChainNode.

Definition at line 39 of file Node.cpp.

40{
41 for (auto* list : m_hook_lists) {
42 list->clear();
43 }
44}
std::vector< HookList * > m_hook_lists
Definition Node.hpp:469

References m_hook_lists.