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

◆ on_wrap()

HookId MayaFlux::Nodes::Generator::Counter::on_wrap ( const TypedHook< GeneratorContext > &  callback)

Registers a callback fired when the counter wraps to zero.

Parameters
callbackReceives GeneratorContext at the wrap boundary

Definition at line 35 of file Counter.cpp.

36{
37 return m_wrap_callbacks.add(adapt_hook(callback), callback.target_type());
38}
PickCallback callback
Definition Picker.cpp:22
HookId add(NodeHook hook, const std::type_info &key, uint8_t tag=0, std::array< double, 2 > params={})
Appends a hook with no duplicate check and returns its id.
NodeHook adapt_hook(const TypedHook< ContextT > &hook)
Wraps a context-typed hook into a NodeHook.

References MayaFlux::Nodes::adapt_hook(), MayaFlux::Nodes::HookList::add(), callback, and m_wrap_callbacks.

+ Here is the call graph for this function: