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

◆ set_direct_function() [2/2]

void MayaFlux::Nodes::Generator::Logic::set_direct_function ( DirectFunction  function)

Sets a custom combinational logic function.

Parameters
functionCustom function implementing stateless boolean logic

Configures the node to use a user-defined function for stateless evaluation of inputs, enabling custom combinational logic beyond the standard operators.

Definition at line 552 of file Logic.cpp.

553{
554 m_direct_function = std::move(function);
557 m_coef_bound = false;
558}
DirectFunction m_direct_function
Function for direct mode.
Definition Logic.hpp:696
bool m_coef_bound
True while the active mode runs a coefficient function.
Definition Logic.hpp:723
LogicOperator m_operator
Current logic operator.
Definition Logic.hpp:695
LogicMode m_mode
Current processing mode.
Definition Logic.hpp:694
@ DIRECT
Stateless evaluation of current input only (combinational logic)
@ CUSTOM
User-defined boolean function.

References MayaFlux::Nodes::Generator::CUSTOM, MayaFlux::Nodes::Generator::DIRECT, m_coef_bound, m_direct_function, m_mode, and m_operator.

Referenced by Logic(), and set_direct_function().

+ Here is the caller graph for this function: