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

◆ remove_hook()

bool MayaFlux::Nodes::Generator::Logic::remove_hook ( const TypedHook< LogicContext > &  callback)

Removes a previously registered callback.

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

Definition at line 797 of file Logic.cpp.

798{
799 const auto& key = callback.target_type();
800 bool removed = m_callbacks.remove_by_key(key);
801 removed |= m_all_callbacks.remove_by_key(key);
802 return removed;
803}
PickCallback callback
Definition Picker.cpp:22
HookList m_all_callbacks
Event-specific callbacks, tagged with their LogicEventType.
Definition Logic.hpp:762
bool remove_by_key(const std::type_info &key)
Removes every entry registered with this callable type.
HookList m_callbacks
Hooks fired on every tick.
Definition Node.hpp:478

References callback, m_all_callbacks, MayaFlux::Nodes::Node::m_callbacks, and MayaFlux::Nodes::HookList::remove_by_key().

+ Here is the call graph for this function: