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

Function FloatRepeatedFieldAccessor

common/value.cc:770–792  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

768}
769
770void FloatRepeatedFieldAccessor(
771 int index, const google::protobuf::Message* absl_nonnull message,
772 const google::protobuf::FieldDescriptor* absl_nonnull field,
773 const google::protobuf::Reflection* absl_nonnull reflection,
774 const google::protobuf::DescriptorPool* absl_nonnull descriptor_pool,
775 google::protobuf::MessageFactory* absl_nonnull message_factory,
776 google::protobuf::Arena* absl_nonnull arena, Value* absl_nonnull result) {
777 ABSL_DCHECK(message != nullptr);
778 ABSL_DCHECK(field != nullptr);
779 ABSL_DCHECK(message_factory != nullptr);
780 ABSL_DCHECK(descriptor_pool != nullptr);
781 ABSL_DCHECK(reflection != nullptr);
782 ABSL_DCHECK(arena != nullptr);
783 ABSL_DCHECK(result != nullptr);
784 ABSL_DCHECK_EQ(reflection, message->GetReflection());
785 ABSL_DCHECK_EQ(field->containing_type(), message->GetDescriptor());
786 ABSL_DCHECK(field->is_repeated());
787 ABSL_DCHECK_EQ(field->cpp_type(), google::protobuf::FieldDescriptor::CPPTYPE_FLOAT);
788 ABSL_DCHECK_GE(index, 0);
789 ABSL_DCHECK_LT(index, reflection->FieldSize(*message, field));
790
791 *result = DoubleValue(reflection->GetRepeatedFloat(*message, field, index));
792}
793
794void Int64RepeatedFieldAccessor(
795 int index, const google::protobuf::Message* absl_nonnull message,

Callers

nothing calls this directly

Calls 3

DoubleValueClass · 0.50
GetReflectionMethod · 0.45
GetDescriptorMethod · 0.45

Tested by

no test coverage detected