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

◆ unhook()

bool MayaFlux::Nodes::Node::unhook ( HookId  id)
virtual

Removes the one registration with this id, whichever hook list holds it.

Parameters
idId returned by an on_* registration of this node
Returns
True if the registration existed and was removed

Reimplemented in MayaFlux::Nodes::ChainNode.

Definition at line 46 of file Node.cpp.

47{
48 return std::ranges::any_of(m_hook_lists, [id](HookList* list) { return list->remove(id); });
49}
friend class HookList
Definition Node.hpp:463
std::vector< HookList * > m_hook_lists
Definition Node.hpp:469

References m_hook_lists, and MayaFlux::Nodes::HookList::remove().

+ Here is the call graph for this function: