Get names of operations matching a type.
- Template Parameters
-
| OpClass | Operation 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::shared_mutex m_mutex
std::unordered_map< std::string, PooledOperationInfo > m_info
References m_info, and m_mutex.