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

◆ Logic() [6/6]

MayaFlux::Nodes::Generator::Logic::Logic ( TemporalFunction  function)
explicit

Constructs a Logic node for time-dependent evaluation.

Parameters
functionFunction implementing temporal boolean logic

Creates a Logic node that evaluates inputs based on both their value and the time at which they occur. This enables implementation of timing-sensitive operations like pulse width detection, timeout monitoring, and rate-of-change analysis.

Definition at line 89 of file Logic.cpp.

92 , m_temporal_function(std::move(function))
94 , m_input_count(1)
95 , m_threshold(0.5)
96 , m_low_threshold(0.45)
97 , m_high_threshold(0.5)
101{
102}
TemporalFunction m_temporal_function
Function for temporal mode.
Definition Logic.hpp:585
size_t m_history_size
Maximum size of the history buffer.
Definition Logic.hpp:588
EdgeType m_edge_type
Type of edge to detect.
Definition Logic.hpp:593
double m_threshold
Threshold for boolean conversion.
Definition Logic.hpp:590
double m_high_threshold
High threshold for hysteresis.
Definition Logic.hpp:592
std::vector< double > m_input_buffer
Definition Logic.hpp:598
LogicOperator m_operator
Current logic operator.
Definition Logic.hpp:581
double m_low_threshold
Low threshold for hysteresis.
Definition Logic.hpp:591
bool m_edge_detected
Whether an edge was detected in the last processing.
Definition Logic.hpp:594
LogicMode m_mode
Current processing mode.
Definition Logic.hpp:580
size_t m_input_count
Expected number of inputs for multi-input mode.
Definition Logic.hpp:589
std::span< const float > get_gpu_data_buffer() const
Provides access to the GPU data buffer.
Definition Node.cpp:78
@ TEMPORAL
Time-dependent evaluation with timing constraints.
@ CUSTOM
User-defined boolean function.