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

◆ clear()

template<typename BufferType >
void MayaFlux::Buffers::RootBuffer< BufferType >::clear ( )
inlineoverride

Resets all data values in this buffer and its tributaries.

Initializes all sample values to zero in this buffer and optionally in all tributary buffers in the aggregation hierarchy.

Definition at line 105 of file RootBuffer.hpp.

106 {
107 BufferType::clear();
108 for (auto& child : m_child_buffers) {
109 child->clear();
110 }
111 }
std::vector< std::shared_ptr< BufferType > > m_child_buffers
Vector of tributary buffers that contribute to this root buffer.