MayaFlux 0.1.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 103 of file RootBuffer.hpp.

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