MayaFlux 0.4.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 172 of file Impulse.cpp.

173{
175}
std::vector< TypedHook< GeneratorContext > > m_impulse_callbacks
Collection of impulse-specific callback functions.
Definition Impulse.hpp:266
bool safe_remove_callback(std::vector< TypedHook< ContextT > > &callbacks, const TypedHook< ContextT > &callback)
Removes all callbacks whose target_type() matches that of the supplied callback.
Definition NodeUtils.hpp:92

References m_impulse_callbacks, and MayaFlux::Nodes::safe_remove_callback().

+ Here is the call graph for this function: