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

524 {
526 }
float value

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

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

+ Here is the caller graph for this function: