MayaFlux 0.2.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 211 of file BufferProcessingChain.cpp.

212{
213 auto it = m_buffer_processors.find(buffer);
214 return it != m_buffer_processors.end() && !it->second.empty();
215}
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.