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

◆ clear()

void MayaFlux::Kakshya::WindowContainer::clear ( )
overridevirtual

Clear all data in the container.

Implements MayaFlux::Kakshya::NDDataContainer.

Definition at line 419 of file WindowContainer.cpp.

420{
421 const size_t sz = m_structure.get_total_elements();
422 {
423 Memory::SeqlockWriteGuard g(m_data_lock);
424 m_processed_data.resize(1);
425 m_processed_data[0] = std::vector<uint8_t>(sz, 0U);
426 }
428}
std::vector< DataVariant > m_processed_data
void update_processing_state(ProcessingState new_state) override
Update the processing state of the container.
@ IDLE
Container is inactive with no data or not ready for processing.
static uint64_t get_total_elements(const std::vector< DataDimension > &dimensions)
Get total elements across all dimensions.

References MayaFlux::Kakshya::ContainerDataStructure::get_total_elements(), MayaFlux::Kakshya::IDLE, m_data_lock, m_processed_data, m_structure, and update_processing_state().

+ Here is the call graph for this function: