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

Method ForEach

common/values/map_value.cc:201–214  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

199}
200
201absl::Status MapValue::ForEach(
202 ForEachCallback callback,
203 const google::protobuf::DescriptorPool* absl_nonnull descriptor_pool,
204 google::protobuf::MessageFactory* absl_nonnull message_factory,
205 google::protobuf::Arena* absl_nonnull arena) const {
206 ABSL_DCHECK(descriptor_pool != nullptr);
207 ABSL_DCHECK(message_factory != nullptr);
208 ABSL_DCHECK(arena != nullptr);
209
210 return variant_.Visit([&](const auto& alternative) -> absl::Status {
211 return alternative.ForEach(callback, descriptor_pool, message_factory,
212 arena);
213 });
214}
215
216absl::StatusOr<absl_nonnull ValueIteratorPtr> MapValue::NewIterator() const {
217 return variant_.Visit([](const auto& alternative)

Callers 12

SetMapFieldMethod · 0.45
SetRepeatedFieldMethod · 0.45
TEST_FFunction · 0.45
TEST_FFunction · 0.45
TEST_FFunction · 0.45
TEST_FFunction · 0.45
TEST_FFunction · 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 10

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
TEST_FFunction · 0.36
TEST_FFunction · 0.36