MayaFlux 0.1.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 197 of file BufferProcessingChain.cpp.

198{
199 static const std::vector<std::shared_ptr<BufferProcessor>> empty_vector;
200
201 auto it = m_buffer_processors.find(buffer);
202 if (it != m_buffer_processors.end()) {
203 return it->second;
204 }
205
206 return empty_vector;
207}
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.