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

◆ remove_by_condition_key()

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

Removes every entry whose condition has this callable type.

Definition at line 233 of file NodeUtils.cpp.

234{
235 return mutate([&](std::vector<HookEntry>& entries) {
236 return std::erase_if(entries, [&](const HookEntry& entry) {
237 return entry.condition && entry.condition->target_type() == key;
238 }) > 0;
239 });
240}
bool mutate(const std::function< bool(std::vector< HookEntry > &)> &edit)

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

Referenced by MayaFlux::Nodes::Node::remove_conditional_hook(), and MayaFlux::Nodes::Generator::Logic::remove_conditional_hook().

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