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

◆ TypedHook

template<typename ContextT = NodeContext>
MayaFlux::Nodes::TypedHook

Callback function type for node processing events, parameterised on context type.

Defaults to NodeContext so existing code is unaffected. Concrete node classes specialise this with their own context type for their domain-specific callbacks, eliminating the need for callers to cast inside the lambda.

Example (base interface):

node->on_tick([](NodeContext& ctx) { ... });
Base context class for node callbacks.
Definition Node.hpp:30

Example (concrete node):

phasor->on_phase_wrap([](GeneratorContext& ctx) { ... });

Definition at line 28 of file NodeUtils.hpp.