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

◆ save_state()

template<typename T >
std::vector< T > MayaFlux::Memory::HistoryBuffer< T >::save_state ( ) const
inline

Save current state for later restoration.

Returns
Vector containing current data in temporal order

Definition at line 572 of file RingBuffer.hpp.

573 {
574 std::vector<T> state;
575 state.reserve(m_count);
576 for (size_t i = 0; i < m_count; ++i) {
577 state.push_back(m_data[(m_head + i) % m_capacity]);
578 }
579 return state;
580 }

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::save_state().

+ Here is the caller graph for this function: