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

◆ remove_threshold_callback()

bool MayaFlux::Nodes::Generator::Phasor::remove_threshold_callback ( const NodeHook callback)
protected

Removes a previously registered phase wrap 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_phase_wrap(), stopping it from receiving further notifications about phase wraps.

Definition at line 185 of file Phasor.cpp.

186{
187 for (auto it = m_threshold_callbacks.begin(); it != m_threshold_callbacks.end(); ++it) {
188 if (it->first.target_type() == callback.target_type()) {
189 m_threshold_callbacks.erase(it);
190 return true;
191 }
192 }
193 return false;
194}
std::vector< std::pair< NodeHook, double > > m_threshold_callbacks
Collection of threshold-specific callback functions with their thresholds.
Definition Phasor.hpp:328

References m_threshold_callbacks.

Referenced by remove_hook().

+ Here is the caller graph for this function: