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

655 {
656 std::vector<T> state;
657 state.reserve(m_count);
658 for (size_t i = 0; i < m_count; ++i) {
659 state.push_back(m_data[(m_head + i) % m_capacity]);
660 }
661 return state;
662 }

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: