MayaFlux 0.1.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::Generator::Impulse, MayaFlux::Nodes::Generator::Logic, MayaFlux::Nodes::Generator::Phasor, and MayaFlux::Nodes::ChainNode.

Definition at line 25 of file Node.cpp.

26{
27 m_callbacks.clear();
29}
std::vector< NodeHook > m_callbacks
Collection of standard callback functions.
Definition Node.hpp:416
std::vector< std::pair< NodeHook, NodeCondition > > m_conditional_callbacks
Collection of conditional callback functions with their predicates.
Definition Node.hpp:426

References m_callbacks, and m_conditional_callbacks.