提交 4a142a44 编写于 作者: A Alexey Milovidov

Added a patch from Vitaly Stoyan

上级 caced897
......@@ -56,6 +56,15 @@ FunctionOverloadResolverImplPtr FunctionFactory::getImpl(
return res;
}
std::vector<std::string> FunctionFactory::getAllNames() const {
std::vector<std::string> res;
res.reserve(functions.size());
for (const auto& func : functions) {
res.emplace_back(func.first);
}
return res;
}
FunctionOverloadResolverPtr FunctionFactory::get(
const std::string & name,
const Context & context) const
......
......@@ -39,6 +39,8 @@ public:
registerFunction(name, &Function::create, case_sensitiveness);
}
std::vector<std::string> getAllNames() const;
/// Throws an exception if not found.
FunctionOverloadResolverPtr get(const std::string & name, const Context & context) const;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册