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

Method Get

common/values/map_value.cc:138–152  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

136}
137
138absl::Status MapValue::Get(
139 const Value& key,
140 const google::protobuf::DescriptorPool* absl_nonnull descriptor_pool,
141 google::protobuf::MessageFactory* absl_nonnull message_factory,
142 google::protobuf::Arena* absl_nonnull arena, Value* absl_nonnull result) const {
143 ABSL_DCHECK(descriptor_pool != nullptr);
144 ABSL_DCHECK(message_factory != nullptr);
145 ABSL_DCHECK(arena != nullptr);
146 ABSL_DCHECK(result != nullptr);
147
148 return variant_.Visit([&](const auto& alternative) -> absl::Status {
149 return alternative.Get(key, descriptor_pool, message_factory, arena,
150 result);
151 });
152}
153
154absl::StatusOr<bool> MapValue::Find(
155 const Value& key,

Callers 9

TEST_FFunction · 0.45
TEST_FFunction · 0.45
TEST_FFunction · 0.45
MapValueEqualFunction · 0.45
TEST_FFunction · 0.45
TEST_FFunction · 0.45
TEST_FFunction · 0.45
TEST_FFunction · 0.45
TEST_FFunction · 0.45

Calls 1

VisitMethod · 0.45

Tested by 8

TEST_FFunction · 0.36
TEST_FFunction · 0.36
TEST_FFunction · 0.36
TEST_FFunction · 0.36
TEST_FFunction · 0.36
TEST_FFunction · 0.36
TEST_FFunction · 0.36
TEST_FFunction · 0.36