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

◆ on_count()

void MayaFlux::Nodes::Generator::Counter::on_count ( uint32_t  target,
const TypedHook< GeneratorContext > &  callback 
)

Registers a callback fired when the counter reaches a specific raw value.

Parameters
targetRaw counter value to match
callbackReceives GeneratorContext when count == target

Definition at line 30 of file Counter.cpp.

30{ m_count_callbacks.emplace_back(target, callback); }
std::vector< std::pair< uint32_t, TypedHook< GeneratorContext > > > m_count_callbacks
Definition Counter.hpp:138

References m_count_callbacks.