MayaFlux 1.0.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 267 of file BufferProcessingChain.cpp.

268{
269 static const std::vector<std::shared_ptr<BufferProcessor>> empty_vector;
270
271 auto it = m_buffer_processors.find(buffer);
272 if (it != m_buffer_processors.end()) {
273 return it->second;
274 }
275
276 return empty_vector;
277}
std::shared_ptr< NetworkGeometryBuffer > buffer
std::unordered_map< std::shared_ptr< Buffer >, std::vector< std::shared_ptr< BufferProcessor > > > m_buffer_processors
Map of buffers to their processor sequences.

References buffer, and m_buffer_processors.