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

◆ linearized_view() [1/2]

template<typename T >
std::span< T > MayaFlux::Memory::HistoryBuffer< T >::linearized_view ( )
inline

Get mutable linearized view of entire history.

Returns
Mutable span ordered [newest → oldest], size = capacity

Always returns full-size span (size = capacity), even if fewer elements have been pushed. This matches mathematical convention where y[n-k] is defined for all k < N with initial conditions = 0.

Definition at line 536 of file RingBuffer.hpp.

537 {
538 for (size_t i = 0; i < m_count; ++i) {
540 }
541 return { m_linear_view.data(), m_count };
542 }

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

Referenced by MayaFlux::Nodes::Generator::Polynomial::process_sample(), and MayaFlux::Nodes::Generator::Polynomial::update_context().

+ Here is the caller graph for this function: