|
MayaFlux 0.1.0
Digital-First Multimedia Processing Framework
|
| bool MayaFlux::Nodes::safe_add_callback | ( | std::vector< NodeHook > & | callbacks, |
| const NodeHook & | callback | ||
| ) |
Safely adds a callback to a collection if it doesn't already exist.
| callbacks | The collection of callbacks to add to |
| callback | The callback function to add |
This function first checks if the callback already exists in the collection, and only adds it if it's not already present. This prevents duplicate registrations of the same callback function.
Definition at line 33 of file NodeUtils.cpp.
References callback_exists().
Referenced by MayaFlux::Nodes::Generator::Impulse::on_impulse(), MayaFlux::Nodes::Generator::Phasor::on_phase_wrap(), and MayaFlux::Nodes::Node::on_tick().
Here is the call graph for this function:
Here is the caller graph for this function: