| 125 | }; |
| 126 | |
| 127 | struct LazyFunctionEntry { |
| 128 | LazyFunctionEntry( |
| 129 | const cel::FunctionDescriptor& descriptor, |
| 130 | std::unique_ptr<cel::runtime_internal::FunctionProvider> provider) |
| 131 | : descriptor(std::make_unique<cel::FunctionDescriptor>(descriptor)), |
| 132 | function_provider(std::move(provider)) {} |
| 133 | |
| 134 | // Extra indirection needed to preserve pointer stability for the |
| 135 | // descriptors. |
| 136 | std::unique_ptr<cel::FunctionDescriptor> descriptor; |
| 137 | std::unique_ptr<cel::runtime_internal::FunctionProvider> function_provider; |
| 138 | }; |
| 139 | |
| 140 | struct RegistryEntry { |
| 141 | std::vector<StaticFunctionEntry> static_overloads; |
no outgoing calls
no test coverage detected