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

◆ remove_hook()

bool MayaFlux::Nodes::ChainNode::remove_hook ( const NodeHook &  callback)
inlineoverridevirtual

Removes a previously registered callback.

Parameters
callbackThe callback to remove
Returns
True if the callback was found and removed, false otherwise

Unregisters a callback that was previously registered with on_tick(). After removal, the callback will no longer be triggered when the node produces new output values.

This method is useful for cleaning up callbacks when they are no longer needed, preventing memory leaks and unnecessary processing.

Reimplemented from MayaFlux::Nodes::Node.

Definition at line 118 of file NodeChain.hpp.

119 {
120 return !m_nodes.empty() && m_nodes.back()->remove_hook(callback);
121 }
PickCallback callback
Definition Picker.cpp:22
std::vector< std::shared_ptr< Node > > m_nodes

References callback.