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

◆ get_graphics_unit()

const RootGraphicsUnit & MayaFlux::Buffers::TokenUnitManager::get_graphics_unit ( ProcessingToken  token) const

Gets an existing graphics unit without creating if missing.

Parameters
tokenProcessing domain
Returns
Const 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.

Definition at line 151 of file TokenUnitManager.cpp.

152{
153 auto it = m_graphics_units.find(token);
154 if (it == m_graphics_units.end()) {
155 throw std::out_of_range("Graphics unit not found for token");
156 }
157 return it->second;
158}
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::get_graphics_buffers(), MayaFlux::Buffers::BufferAccessControl::get_graphics_buffers_by_usage(), and MayaFlux::Buffers::BufferAccessControl::get_root_graphics_buffer().

+ Here is the caller graph for this function: