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

◆ reset()

template<typename T >
void MayaFlux::Memory::HistoryBuffer< T >::reset ( )
inline

Reset buffer to initial state (all zeros)

Fills buffer with default values and resets to full capacity. Matches behavior of mathematical systems with zero initial conditions.

Definition at line 492 of file RingBuffer.hpp.

493 {
494 std::ranges::fill(m_data, T {});
495 m_head = 0;
497 }

References MayaFlux::Memory::HistoryBuffer< T >::m_capacity, MayaFlux::Memory::HistoryBuffer< T >::m_count, MayaFlux::Memory::HistoryBuffer< T >::m_data, and MayaFlux::Memory::HistoryBuffer< T >::m_head.

Referenced by MayaFlux::Nodes::Generator::Polynomial::reset().

+ Here is the caller graph for this function: