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

◆ get_type()

std::optional< std::type_index > MayaFlux::Yantra::OperationPool::get_type ( const std::string &  name) const
inline

Get type of named operation.

Parameters
nameOperation name
Returns
Optional containing the type index if found

Definition at line 338 of file OperationPool.hpp.

339 {
340 std::shared_lock lock(m_mutex);
341
342 auto it = m_info.find(name);
343 if (it != m_info.end()) {
344 return it->second.type;
345 }
346
347 return std::nullopt;
348 }
std::unordered_map< std::string, PooledOperationInfo > m_info

References m_info, and m_mutex.