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

◆ remove_by_key()

bool MayaFlux::Nodes::HookList::remove_by_key ( const std::type_info &  key)

Removes every entry registered with this callable type.

Definition at line 214 of file NodeUtils.cpp.

215{
216 return mutate([&](std::vector<HookEntry>& entries) {
217 return std::erase_if(entries, [&](const HookEntry& entry) { return *entry.key == key; }) > 0;
218 });
219}
bool mutate(const std::function< bool(std::vector< HookEntry > &)> &edit)

References MayaFlux::Nodes::HookEntry::key, and mutate().

Referenced by MayaFlux::Nodes::GpuSync::GpuComputeNode::remove_complete_hook(), MayaFlux::Nodes::Node::remove_hook(), MayaFlux::Nodes::Generator::Counter::remove_hook(), MayaFlux::Nodes::Generator::Impulse::remove_hook(), and MayaFlux::Nodes::Generator::Logic::remove_hook().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: