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

◆ has_processors()

bool MayaFlux::Buffers::BufferProcessingChain::has_processors ( const std::shared_ptr< Buffer > &  buffer) const

Checks if a buffer has any processors in its pipeline.

Parameters
bufferBuffer to check
Returns
true if the buffer has processors, false otherwise

This method enables dynamic pipeline management and optimization decisions based on the presence of processing stages for specific buffers.

Definition at line 191 of file BufferProcessingChain.cpp.

192{
193 auto it = m_buffer_processors.find(buffer);
194 return it != m_buffer_processors.end() && !it->second.empty();
195}
std::unordered_map< std::shared_ptr< Buffer >, std::vector< std::shared_ptr< BufferProcessor > > > m_buffer_processors
Map of buffers to their processor sequences.

References m_buffer_processors.