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

◆ remove_by_tag()

bool MayaFlux::Nodes::HookList::remove_by_tag ( uint8_t  tag)

Removes every entry carrying this tag.

Definition at line 242 of file NodeUtils.cpp.

243{
244 return mutate([tag](std::vector<HookEntry>& entries) {
245 return std::erase_if(entries, [tag](const HookEntry& entry) { return entry.tag == tag; }) > 0;
246 });
247}
bool mutate(const std::function< bool(std::vector< HookEntry > &)> &edit)

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

Referenced by MayaFlux::Nodes::Generator::Logic::remove_hooks_of_type().

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