MayaFlux 1.0.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 147 of file PlotProcessor.cpp.

148{
149 for (auto& [idx, b] : m_bindings) {
150 if (b.source_type == SourceType::NODE && b.node)
151 b.node->remove_buffer_reference();
152 }
153 m_bindings.clear();
154}
size_t b
std::unordered_map< uint32_t, SeriesBinding > m_bindings

References b, m_bindings, and NODE.