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

◆ reset()

void MayaFlux::Nodes::Generator::Logic::reset ( )

Resets internal state to initial conditions.

Clears history buffers, resets state variables, and returns the node to its initial configuration. Essential for restarting sequential processing or clearing accumulated state.

Definition at line 300 of file Logic.cpp.

301{
302 m_history.clear();
303 m_history.assign(m_history_size, false);
304 m_edge_detected = false;
305 m_last_output = 0.0;
306 m_hysteresis_state = false;
307 m_temporal_time = 0.0;
308 m_input_buffer.assign(m_input_count, 0.0);
309}
size_t m_history_size
Maximum size of the history buffer.
Definition Logic.hpp:566
std::deque< bool > m_history
Buffer of input values for feedforward mode.
Definition Logic.hpp:565
double m_temporal_time
Time tracking for temporal mode.
Definition Logic.hpp:574
std::vector< double > m_input_buffer
Definition Logic.hpp:575
bool m_edge_detected
Whether an edge was detected in the last processing.
Definition Logic.hpp:572
bool m_hysteresis_state
State for hysteresis operator.
Definition Logic.hpp:573
size_t m_input_count
Expected number of inputs for multi-input mode.
Definition Logic.hpp:567
double m_last_output
The most recent sample value generated by this oscillator.
Definition Node.hpp:378

References m_edge_detected, m_history, m_history_size, m_hysteresis_state, m_input_buffer, m_input_count, MayaFlux::Nodes::Node::m_last_output, and m_temporal_time.