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

◆ get_processors()

const std::vector< std::shared_ptr< BufferProcessor > > & MayaFlux::Buffers::BufferProcessingChain::get_processors ( const std::shared_ptr< Buffer > &  buffer) const

Gets all processors in a buffer's transformation pipeline.

Parameters
bufferBuffer to get processors for
Returns
Constant reference to the vector of processors

Returns an empty vector if the buffer has no processors. This provides access to the processor sequence for analysis, optimization, or debugging purposes while maintaining the integrity of the processing pipeline.

Definition at line 217 of file BufferProcessingChain.cpp.

218{
219 static const std::vector<std::shared_ptr<BufferProcessor>> empty_vector;
220
221 auto it = m_buffer_processors.find(buffer);
222 if (it != m_buffer_processors.end()) {
223 return it->second;
224 }
225
226 return empty_vector;
227}
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.