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

Method Next

common/legacy_value.cc:102–115  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

100 bool HasNext() override { return index_ < size_; }
101
102 absl::Status Next(const google::protobuf::DescriptorPool* absl_nonnull descriptor_pool,
103 google::protobuf::MessageFactory* absl_nonnull message_factory,
104 google::protobuf::Arena* absl_nonnull arena,
105 Value* absl_nonnull result) override {
106 if (!HasNext()) {
107 return absl::FailedPreconditionError(
108 "ValueIterator::Next() called when ValueIterator::HasNext() returns "
109 "false");
110 }
111 auto cel_value = cel_list_->Get(arena, index_);
112 CEL_RETURN_IF_ERROR(ModernValue(arena, cel_value, *result));
113 ++index_;
114 return absl::OkStatus();
115 }
116
117 absl::StatusOr<bool> Next1(
118 const google::protobuf::DescriptorPool* absl_nonnull descriptor_pool,

Callers

nothing calls this directly

Calls 2

ModernValueFunction · 0.70
GetMethod · 0.45

Tested by

no test coverage detected