MCPcopy Create free account
hub / github.com/cel-expr/cel-cpp / FindFunctionOverloads

Method FindFunctionOverloads

eval/public/activation.cc:41–53  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

39}
40
41std::vector<const CelFunction*> Activation::FindFunctionOverloads(
42 absl::string_view name) const {
43 const auto map_entry = function_map_.find(name);
44 std::vector<const CelFunction*> overloads;
45 if (map_entry == function_map_.end()) {
46 return overloads;
47 }
48 overloads.resize(map_entry->second.size());
49 std::transform(map_entry->second.begin(), map_entry->second.end(),
50 overloads.begin(),
51 [](const auto& func) { return func.get(); });
52 return overloads;
53}
54
55bool Activation::RemoveFunctionEntries(
56 const CelFunctionDescriptor& descriptor) {

Callers 1

TESTFunction · 0.45

Calls 4

endMethod · 0.45
sizeMethod · 0.45
beginMethod · 0.45
getMethod · 0.45

Tested by 1

TESTFunction · 0.36