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

◆ overwrite_newest()

template<typename T >
void MayaFlux::Memory::HistoryBuffer< T >::overwrite_newest ( const T &  value)
inline

Overwrite the newest element without advancing position.

Parameters
valueNew value for current sample

Critical for recursive algorithms where you push input, compute output, then replace the pushed value with the computed result.

Definition at line 441 of file RingBuffer.hpp.

442 {
443 m_data[m_head] = value;
444 }

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

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

+ Here is the caller graph for this function: