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

◆ operator[]() [1/2]

template<typename T >
reference MayaFlux::Memory::HistoryBuffer< T >::operator[] ( size_t  index)
inline

Access element by temporal offset.

Parameters
indexTemporal offset (0 = newest, k = k samples ago)
Returns
Mutable reference to element

Provides direct access to history: [0] = most recent, [1] = one step back, etc. Matches mathematical notation y[n-k] where index k represents temporal offset.

Definition at line 394 of file RingBuffer.hpp.

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