MayaFlux 0.5.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 574 of file RingBuffer.hpp.

575 {
576 std::ranges::fill(m_data, T {});
577 m_head = 0;
579 }

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: