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

◆ process_typed()

template<typename ProcessorType >
void MayaFlux::Kakshya::DataProcessingChain::process_typed ( std::shared_ptr< SignalSourceContainer container)
inline

Processes a container with processors of a specific type.

Template Parameters
ProcessorTypeThe type of processors to apply
Parameters
containerThe signal container to process

Enables selective processing based on processor type, supporting specialized data transformations or analysis paths.

Definition at line 90 of file DataProcessingChain.hpp.

91 {
92 auto it = m_container_processors.find(container);
93 if (it != m_container_processors.end()) {
94 for (auto& processor : it->second) {
95 if (auto typed_proc = std::dynamic_pointer_cast<ProcessorType>(processor)) {
96 typed_proc->process(container);
97 }
98 }
99 }
100 }
std::unordered_map< std::shared_ptr< SignalSourceContainer >, std::vector< std::shared_ptr< DataProcessor > > > m_container_processors
Maps containers to their associated processors in sequence order.