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

◆ list_names_by_type()

template<typename OpClass >
std::vector< std::string > MayaFlux::Yantra::OperationPool::list_names_by_type ( ) const
inline

Get names of operations matching a type.

Template Parameters
OpClassOperation class type to match
Returns
Vector of matching operation names

Definition at line 268 of file OperationPool.hpp.

269 {
270 std::shared_lock lock(m_mutex);
271
272 std::type_index target_type(typeid(OpClass));
273 std::vector<std::string> names;
274
275 for (const auto& [name, info] : m_info) {
276 if (info.type == target_type) {
277 names.push_back(name);
278 }
279 }
280
281 return names;
282 }
std::unordered_map< std::string, PooledOperationInfo > m_info

References m_info, and m_mutex.