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

◆ remove_conditional_hook()

bool MayaFlux::Nodes::Node::remove_conditional_hook ( const NodeCondition &  callback)
virtual

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

Definition at line 34 of file Node.cpp.

35{
37}
PickCallback callback
Definition Picker.cpp:22
bool remove_by_condition_key(const std::type_info &key)
Removes every entry whose condition has this callable type.
HookList m_conditional_callbacks
Hooks fired on a tick only while their condition holds.
Definition Node.hpp:485

References callback, m_conditional_callbacks, and MayaFlux::Nodes::HookList::remove_by_condition_key().

+ Here is the call graph for this function: