| 71 | } // namespace |
| 72 | |
| 73 | std::unordered_map< |
| 74 | std::string, |
| 75 | std::vector<std::shared_ptr<const FunctionSignature>>> |
| 76 | SimpleFunctionRegistry::getFunctionSignatureMap() const { |
| 77 | std::unordered_map< |
| 78 | std::string, |
| 79 | std::vector<std::shared_ptr<const FunctionSignature>>> |
| 80 | result; |
| 81 | registeredFunctions_.withRLock([&](const auto& map) { |
| 82 | result.reserve(map.size()); |
| 83 | |
| 84 | for (const auto& entry : map) { |
| 85 | std::vector<std::shared_ptr<const FunctionSignature>> signatures; |
| 86 | const auto signatureMap = &entry.second; |
| 87 | signatures.reserve(signatureMap->size()); |
| 88 | for (const auto& pair : *signatureMap) { |
| 89 | signatures.emplace_back( |
| 90 | std::make_shared<const FunctionSignature>(pair.first)); |
| 91 | } |
| 92 | result[entry.first] = signatures; |
| 93 | } |
| 94 | }); |
| 95 | return result; |
| 96 | } |
| 97 | |
| 98 | std::vector<std::shared_ptr<const FunctionSignature>> |
| 99 | SimpleFunctionRegistry::getFunctionSignatures(const std::string& name) const { |
no test coverage detected