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

Class RuntimeFriendAccess

runtime/internal/runtime_friend_access.h:29–41  ·  view source on GitHub ↗

Provide accessors for friend-visibility internal runtime details. CEL supported runtime extensions need implementation specific details to work correctly. We restrict access to prevent external usages since we don't guarantee stability on the implementation details.

Source from the content-addressed store, hash-verified

27// correctly. We restrict access to prevent external usages since we don't
28// guarantee stability on the implementation details.
29class RuntimeFriendAccess {
30 public:
31 // Access underlying runtime instance.
32 static Runtime& GetMutableRuntime(RuntimeBuilder& builder) {
33 return builder.runtime();
34 }
35
36 // Return the internal type_id for the runtime instance for checked down
37 // casting.
38 static NativeTypeId RuntimeTypeId(Runtime& runtime) {
39 return runtime.GetNativeTypeId();
40 }
41};
42
43} // namespace cel::runtime_internal
44

Callers

nothing calls this directly

Calls 1

runtimeMethod · 0.80

Tested by

no test coverage detected