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

◆ get_graphics_unit_mutable()

RootGraphicsUnit & MayaFlux::Buffers::TokenUnitManager::get_graphics_unit_mutable ( ProcessingToken  token)

Gets an existing graphics unit without creating if missing (mutable)

Parameters
tokenProcessing domain
Returns
Reference to the graphics unit
Exceptions
std::out_of_rangeif token not found

This is a query-only operation; will not create a unit if missing. Mutable version for operations that need to modify the unit in-place.

Definition at line 160 of file TokenUnitManager.cpp.

161{
162 auto it = m_graphics_units.find(token);
163 if (it == m_graphics_units.end()) {
164 throw std::out_of_range("Graphics unit not found for token");
165 }
166 return it->second;
167}
static MayaFlux::Nodes::ProcessingToken token
Definition Timers.cpp:8
std::unordered_map< ProcessingToken, RootGraphicsUnit > m_graphics_units
Token-based map of root graphics buffer units.

References m_graphics_units, and token.

Referenced by MayaFlux::Buffers::BufferAccessControl::remove_graphics_buffer(), MayaFlux::Buffers::BufferProcessingControl::remove_graphics_processor(), MayaFlux::Buffers::BufferProcessingControl::set_graphics_final_processor(), and MayaFlux::Buffers::BufferAccessControl::terminate_active_buffers().

+ Here is the caller graph for this function: