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

◆ remove_conditional_hook()

bool MayaFlux::Nodes::ChainNode::remove_conditional_hook ( const NodeCondition &  callback)
inlineoverridevirtual

Removes a previously registered conditional callback.

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

Unregisters a conditional callback that was previously registered with on_tick_if(). After removal, the callback will no longer be triggered even when its condition is met.

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

Reimplemented from MayaFlux::Nodes::Node.

Definition at line 123 of file NodeChain.hpp.

124 {
125 return !m_nodes.empty() && m_nodes.back()->remove_conditional_hook(callback);
126 }
PickCallback callback
Definition Picker.cpp:22
std::vector< std::shared_ptr< Node > > m_nodes

References callback.