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

Method Next

common/values/value_builder.cc:133–144  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

131 bool HasNext() override { return index_ < elements_.size(); }
132
133 absl::Status Next(const google::protobuf::DescriptorPool* absl_nonnull descriptor_pool,
134 google::protobuf::MessageFactory* absl_nonnull message_factory,
135 google::protobuf::Arena* absl_nonnull arena,
136 Value* absl_nonnull result) override {
137 if (ABSL_PREDICT_FALSE(index_ >= elements_.size())) {
138 return absl::FailedPreconditionError(
139 "ValueManager::Next called after ValueManager::HasNext returned "
140 "false");
141 }
142 *result = elements_[index_++];
143 return absl::OkStatus();
144 }
145
146 absl::StatusOr<bool> Next1(
147 const google::protobuf::DescriptorPool* absl_nonnull descriptor_pool,

Callers

nothing calls this directly

Calls 1

sizeMethod · 0.45

Tested by

no test coverage detected