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

◆ NodeCondition

Predicate function type for conditional callbacks.

A NodeCondition is a function that evaluates whether a callback should be triggered based on the node's current state. It receives a NodeContext object and returns true if the condition is met, false otherwise.

Example:

node->on_tick_if(
[](NodeContext& ctx) { std::cout << "Threshold exceeded!" << std::endl; },
[](NodeContext& ctx) { return ctx.value > 0.8; }
);
double value
Current sample value.
Definition Node.hpp:40
Base context class for node callbacks.
Definition Node.hpp:30

Definition at line 43 of file NodeUtils.hpp.