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

◆ on_detach()

void MayaFlux::Kakshya::PlotProcessor::on_detach ( const std::shared_ptr< SignalSourceContainer > &  container)
overridevirtual

Called when this processor is detached from a container.

Parameters
containerContainer this processor is being detached from

This method allows the processor to:

  • Release container-specific resources
  • Finalize any pending operations
  • Clean up state information
  • Perform any necessary cleanup before the processor is removed

Explicit detachment provides cleaner resource management compared to BufferProcessor's implicit detachment through chain removal.

Implements MayaFlux::Kakshya::DataProcessor.

Definition at line 137 of file PlotProcessor.cpp.

138{
139 for (auto& [idx, b] : m_bindings) {
140 if (b.source_type == SourceType::NODE && b.node)
141 b.node->remove_buffer_reference();
142 }
143 m_bindings.clear();
144}
size_t b
std::unordered_map< uint32_t, SeriesBinding > m_bindings

References b, m_bindings, and NODE.