MCPcopy Create free account
hub / github.com/LadybugDB/ladybug / bindFunc

Function bindFunc

src/function/list/list_any_value_function.cpp:29–37  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

27};
28
29static std::unique_ptr<FunctionBindData> bindFunc(const ScalarBindFuncInput& input) {
30 auto scalarFunction = dynamic_cast_checked<ScalarFunction*>(input.definition);
31 const auto& resultType = ListType::getChildType(input.arguments[0]->dataType);
32 TypeUtils::visit(resultType.getPhysicalType(), [&scalarFunction]<typename T>(T) {
33 scalarFunction->execFunc =
34 ScalarFunction::UnaryExecNestedTypeFunction<list_entry_t, T, ListAnyValue>;
35 });
36 return FunctionBindData::getSimpleBindData(input.arguments, resultType);
37}
38
39function_set ListAnyValueFunction::getFunctionSet() {
40 function_set result;

Callers

nothing calls this directly

Calls 3

getChildTypeFunction · 0.85
visitFunction · 0.50
getPhysicalTypeMethod · 0.45

Tested by

no test coverage detected