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

Definition at line 20 of file Node.cpp.

21{
23}
std::vector< std::pair< NodeHook, NodeCondition > > m_conditional_callbacks
Collection of conditional callback functions with their predicates.
Definition Node.hpp:426
bool safe_remove_conditional_callback(std::vector< std::pair< NodeHook, NodeCondition > > &callbacks, const NodeCondition &callback)
Safely removes all conditional callbacks with a specific condition.
Definition NodeUtils.cpp:68

References m_conditional_callbacks, and MayaFlux::Nodes::safe_remove_conditional_callback().

+ Here is the call graph for this function: