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

◆ remove_hook()

bool MayaFlux::Nodes::Generator::Impulse::remove_hook ( const TypedHook< GeneratorContext > &  callback)

Removes a previously registered callback.

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

Unregisters a callback previously added with on_tick(), stopping it from receiving further notifications about generated samples.

Definition at line 171 of file Impulse.cpp.

172{
173 return m_impulse_callbacks.remove_by_key(callback.target_type());
174}
PickCallback callback
Definition Picker.cpp:22
HookList m_impulse_callbacks
Collection of impulse-specific callback functions.
Definition Impulse.hpp:251
bool remove_by_key(const std::type_info &key)
Removes every entry registered with this callable type.

References callback, m_impulse_callbacks, and MayaFlux::Nodes::HookList::remove_by_key().

+ Here is the call graph for this function: