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

◆ remove_all_hooks()

void MayaFlux::Nodes::Generator::Counter::remove_all_hooks ( )
overridevirtual

Removes all registered callbacks.

Unregisters all callbacks that were previously registered with on_tick() and on_tick_if(). After calling this method, no callbacks will be triggered when the node produces new output values.

This method is useful for completely resetting the node's callback system, such as when repurposing a node or preparing for cleanup.

Reimplemented from MayaFlux::Nodes::Node.

Definition at line 50 of file Counter.cpp.

51{
52 m_callbacks.clear();
55 m_wrap_callbacks.clear();
56 m_count_callbacks.clear();
57}
std::vector< TypedHook< GeneratorContext > > m_increment_callbacks
Definition Counter.hpp:136
std::vector< TypedHook< GeneratorContext > > m_wrap_callbacks
Definition Counter.hpp:137
std::vector< std::pair< uint32_t, TypedHook< GeneratorContext > > > m_count_callbacks
Definition Counter.hpp:138
std::vector< NodeHook > m_callbacks
Collection of standard callback functions.
Definition Node.hpp:426
std::vector< std::pair< NodeHook, NodeCondition > > m_conditional_callbacks
Collection of conditional callback functions with their predicates.
Definition Node.hpp:436

References MayaFlux::Nodes::Node::m_callbacks, MayaFlux::Nodes::Node::m_conditional_callbacks, m_count_callbacks, m_increment_callbacks, and m_wrap_callbacks.