Home
last modified time | relevance | path

Searched refs:RepeatedField (Results 1 – 25 of 62) sorted by relevance

123

/external/protobuf/csharp/src/Google.Protobuf.Test/Collections/
DRepeatedFieldTest.cs50 var list = new RepeatedField<string>(); in NullValuesRejected()
53 Assert.Throws<ArgumentNullException>(() => list.Add((RepeatedField<string>)null)); in NullValuesRejected()
61 var list = new RepeatedField<string>(); in Add_SingleItem()
70 var list = new RepeatedField<string>(); in Add_Sequence()
80 var list = new RepeatedField<string> { "original" }; in Add_RepeatedField()
81 list.Add(new RepeatedField<string> { "foo", "bar" }); in Add_RepeatedField()
91 var list = new RepeatedField<string> { "first", "second", "third" }; in RemoveAt_Valid()
103 var list = new RepeatedField<string> { "first", "second", "third" }; in RemoveAt_Invalid()
111 var list = new RepeatedField<string> { "first", "second" }; in Insert_Valid()
123 var list = new RepeatedField<string> { "first", "second" }; in Insert_Invalid()
[all …]
/external/protobuf/ruby/ext/google/protobuf_c/
Drepeated_field.c44 RepeatedField* ruby_to_RepeatedField(VALUE _self) { in ruby_to_RepeatedField()
45 RepeatedField* self; in ruby_to_RepeatedField()
46 TypedData_Get_Struct(_self, RepeatedField, &RepeatedField_type, self); in ruby_to_RepeatedField()
50 void* RepeatedField_memoryat(RepeatedField* self, int index, int element_size) { in RepeatedField_memoryat()
54 static int index_position(VALUE _index, RepeatedField* repeated_field) { in index_position()
63 RepeatedField* self = ruby_to_RepeatedField(_self); in RepeatedField_subarray()
87 RepeatedField* self = ruby_to_RepeatedField(_self); in RepeatedField_each()
109 RepeatedField* self = ruby_to_RepeatedField(_self); in RepeatedField_index()
159 RepeatedField* self = ruby_to_RepeatedField(_self); in RepeatedField_index_set()
187 void RepeatedField_reserve(RepeatedField* self, int new_size) { in RepeatedField_reserve()
[all …]
/external/tensorflow/tensorflow/core/util/
Dsaved_tensor_slice_util.h67 typename SaveTypeTraits<T>::RepeatedField* MutableTensorProtoData(
78 typedef protobuf::RepeatedField<FTYPE> RepeatedField; \
87 inline protobuf::RepeatedField<FTYPE>* MutableTensorProtoData<TYPE>( \
91 return reinterpret_cast<protobuf::RepeatedField<FTYPE>*>( \
99 typename protobuf::RepeatedField<FTYPE> copy(data, data + n); \
109 typename protobuf::RepeatedField<FTYPE> copy(sub, sub + 2 * n); \
145 typename protobuf::RepeatedField<int32> copy(p, p + n);
155 typedef protobuf::RepeatedField<int32> RepeatedField;
164 inline protobuf::RepeatedField<int32>* MutableTensorProtoData<Eigen::half>(
171 typename protobuf::RepeatedField<int32>* val = t->mutable_half_val();
[all …]
/external/protobuf/csharp/src/Google.Protobuf.Test/TestProtos/
DUnittestProto3.cs553 private readonly pbc::RepeatedField<int> repeatedInt32_ = new pbc::RepeatedField<int>();
557 public pbc::RepeatedField<int> RepeatedInt32 {
565 private readonly pbc::RepeatedField<long> repeatedInt64_ = new pbc::RepeatedField<long>();
566 public pbc::RepeatedField<long> RepeatedInt64 {
574 private readonly pbc::RepeatedField<uint> repeatedUint32_ = new pbc::RepeatedField<uint>();
575 public pbc::RepeatedField<uint> RepeatedUint32 {
583 private readonly pbc::RepeatedField<ulong> repeatedUint64_ = new pbc::RepeatedField<ulong>();
584 public pbc::RepeatedField<ulong> RepeatedUint64 {
592 private readonly pbc::RepeatedField<int> repeatedSint32_ = new pbc::RepeatedField<int>();
593 public pbc::RepeatedField<int> RepeatedSint32 {
[all …]
DUnittestWellKnownTypes.cs929 …private readonly pbc::RepeatedField<global::Google.Protobuf.WellKnownTypes.Any> anyField_ = new pb…
930 public pbc::RepeatedField<global::Google.Protobuf.WellKnownTypes.Any> AnyField {
938 …private readonly pbc::RepeatedField<global::Google.Protobuf.WellKnownTypes.Api> apiField_ = new pb…
939 public pbc::RepeatedField<global::Google.Protobuf.WellKnownTypes.Api> ApiField {
947 …private readonly pbc::RepeatedField<global::Google.Protobuf.WellKnownTypes.Duration> durationField…
948 public pbc::RepeatedField<global::Google.Protobuf.WellKnownTypes.Duration> DurationField {
956 …private readonly pbc::RepeatedField<global::Google.Protobuf.WellKnownTypes.Empty> emptyField_ = ne…
957 public pbc::RepeatedField<global::Google.Protobuf.WellKnownTypes.Empty> EmptyField {
965 …private readonly pbc::RepeatedField<global::Google.Protobuf.WellKnownTypes.FieldMask> fieldMaskFie…
966 public pbc::RepeatedField<global::Google.Protobuf.WellKnownTypes.FieldMask> FieldMaskField {
[all …]
DUnittestIssues.cs371 …private readonly pbc::RepeatedField<global::UnitTest.Issues.TestProtos.NegativeEnum> values_ = new…
372 public pbc::RepeatedField<global::UnitTest.Issues.TestProtos.NegativeEnum> Values {
380 …private readonly pbc::RepeatedField<global::UnitTest.Issues.TestProtos.NegativeEnum> packedValues_…
381 public pbc::RepeatedField<global::UnitTest.Issues.TestProtos.NegativeEnum> PackedValues {
594 private readonly pbc::RepeatedField<int> primitiveArray_ = new pbc::RepeatedField<int>();
596 public pbc::RepeatedField<int> PrimitiveArray {
615 …private readonly pbc::RepeatedField<global::UnitTest.Issues.TestProtos.DeprecatedChild> messageArr…
617 public pbc::RepeatedField<global::UnitTest.Issues.TestProtos.DeprecatedChild> MessageArray {
636 …private readonly pbc::RepeatedField<global::UnitTest.Issues.TestProtos.DeprecatedEnum> enumArray_ …
638 public pbc::RepeatedField<global::UnitTest.Issues.TestProtos.DeprecatedEnum> EnumArray {
/external/protobuf/src/google/protobuf/
Drepeated_field.h107 class RepeatedField {
109 RepeatedField();
110 explicit RepeatedField(Arena* arena);
111 RepeatedField(const RepeatedField& other);
113 RepeatedField(Iter begin, const Iter& end);
114 ~RepeatedField();
116 RepeatedField& operator=(const RepeatedField& other);
136 void MergeFrom(const RepeatedField& other);
137 void CopyFrom(const RepeatedField& other);
162 void Swap(RepeatedField* other);
[all …]
Drepeated_field_unittest.cc60 TEST(RepeatedField, Small) { in TEST() argument
61 RepeatedField<int> field; in TEST()
104 TEST(RepeatedField, Large) { in TEST() argument
105 RepeatedField<int> field; in TEST()
123 TEST(RepeatedField, SwapSmallSmall) { in TEST() argument
124 RepeatedField<int> field1; in TEST()
125 RepeatedField<int> field2; in TEST()
149 TEST(RepeatedField, SwapLargeSmall) { in TEST() argument
150 RepeatedField<int> field1; in TEST()
151 RepeatedField<int> field2; in TEST()
[all …]
Dextension_set.h478 RepeatedField <int32 >* repeated_int32_value;
479 RepeatedField <int64 >* repeated_int64_value;
480 RepeatedField <uint32 >* repeated_uint32_value;
481 RepeatedField <uint64 >* repeated_uint64_value;
482 RepeatedField <float >* repeated_float_value;
483 RepeatedField <double >* repeated_double_value;
484 RepeatedField <bool >* repeated_bool_value;
485 RepeatedField <int >* repeated_enum_value;
711 typedef RepeatedField<Type> RepeatedFieldType;
718 static inline const RepeatedField<ConstType>&
[all …]
Dextension_set.cc317 Arena::CreateMessage<RepeatedField<LOWERCASE> >(arena_); \
362 Arena::CreateMessage<RepeatedField<int32> >(arena_); in MutableRawRepeatedField()
366 Arena::CreateMessage<RepeatedField<int64> >(arena_); in MutableRawRepeatedField()
370 Arena::CreateMessage<RepeatedField<uint32> >(arena_); in MutableRawRepeatedField()
374 Arena::CreateMessage<RepeatedField<uint64> >(arena_); in MutableRawRepeatedField()
378 Arena::CreateMessage<RepeatedField<double> >(arena_); in MutableRawRepeatedField()
382 Arena::CreateMessage<RepeatedField<float> >(arena_); in MutableRawRepeatedField()
386 Arena::CreateMessage<RepeatedField<bool> >(arena_); in MutableRawRepeatedField()
390 Arena::CreateMessage<RepeatedField<int> >(arena_); in MutableRawRepeatedField()
471 Arena::CreateMessage<RepeatedField<int> >(arena_); in AddEnum()
[all …]
Ddynamic_message.cc115 case FD::CPPTYPE_INT32 : return sizeof(RepeatedField<int32 >); in FieldSpaceUsed()
116 case FD::CPPTYPE_INT64 : return sizeof(RepeatedField<int64 >); in FieldSpaceUsed()
117 case FD::CPPTYPE_UINT32 : return sizeof(RepeatedField<uint32 >); in FieldSpaceUsed()
118 case FD::CPPTYPE_UINT64 : return sizeof(RepeatedField<uint64 >); in FieldSpaceUsed()
119 case FD::CPPTYPE_DOUBLE : return sizeof(RepeatedField<double >); in FieldSpaceUsed()
120 case FD::CPPTYPE_FLOAT : return sizeof(RepeatedField<float >); in FieldSpaceUsed()
121 case FD::CPPTYPE_BOOL : return sizeof(RepeatedField<bool >); in FieldSpaceUsed()
122 case FD::CPPTYPE_ENUM : return sizeof(RepeatedField<int >); in FieldSpaceUsed()
359 new(field_ptr) RepeatedField<TYPE>(); \ in SharedCtor()
376 new(field_ptr) RepeatedField<int>(); in SharedCtor()
[all …]
Dwire_format_lite.h51 template <typename T> class RepeatedField; // repeated_field.h variable
263 RepeatedField<CType>* value);
271 RepeatedField<CType>* value);
285 static bool ReadPackedPrimitive(input, RepeatedField<CType>* value);
290 static bool ReadPackedPrimitiveNoInline(input, RepeatedField<CType>* value);
296 RepeatedField<int>* values);
305 RepeatedField<int>* values);
529 RepeatedField<CType>* value);
534 RepeatedField<CType>* value);
Dwire_format_lite_inl.h235 RepeatedField<CType>* values) { in ReadRepeatedPrimitive()
253 RepeatedField<CType>* values) { in ReadRepeatedFixedSizePrimitive()
304 RepeatedField<CPPTYPE>* values) { \
324 RepeatedField<CType>* value) { in READ_REPEATED_FIXED_SIZE_PRIMITIVE()
331 RepeatedField<CType>* values) { in ReadPackedPrimitive()
346 io::CodedInputStream* input, RepeatedField<CType>* values) { in ReadPackedFixedSizePrimitive()
410 RepeatedField<CPPTYPE>* values) { \
426 RepeatedField<CType>* values) { in READ_REPEATED_PACKED_FIXED_SIZE_PRIMITIVE()
Dmessage.cc198 const RepeatedField<TYPE>& Reflection::GetRepeatedField<TYPE>( \
200 return *static_cast<RepeatedField<TYPE>* >( \
206 RepeatedField<TYPE>* Reflection::MutableRepeatedField<TYPE>( \
208 return static_cast<RepeatedField<TYPE>* >( \
Dmessage.h158 class RepeatedField; // repeated_field.h variable
799 const RepeatedField<T>& GetRepeatedField(
806 RepeatedField<T>* MutableRepeatedField(
1072 const RepeatedField<TYPE>& Reflection::GetRepeatedField<TYPE>( \
1077 RepeatedField<TYPE>* Reflection::MutableRepeatedField<TYPE>( \
Dextension_set_unittest.cc717 int min_expected_size = sizeof(RepeatedField<cpptype>) + base_size; \ in TEST()
788 typename RepeatedField<T>::const_iterator iter = in SumAllExtensions()
790 typename RepeatedField<T>::const_iterator end = in SumAllExtensions()
801 typename RepeatedField<T>::iterator iter = in IncAllExtensions()
803 typename RepeatedField<T>::iterator end = in IncAllExtensions()
946 RepeatedField<unittest::TestAllTypes_NestedEnum>::iterator enum_iter; in TEST()
947 RepeatedField<unittest::TestAllTypes_NestedEnum>::iterator enum_end; in TEST()
955 RepeatedField<unittest::TestAllTypes_NestedEnum>::const_iterator in TEST()
957 RepeatedField<unittest::TestAllTypes_NestedEnum>::const_iterator in TEST()
/external/protobuf/csharp/src/Google.Protobuf.Conformance/
DConformance.cs1099 private readonly pbc::RepeatedField<int> repeatedInt32_ = new pbc::RepeatedField<int>();
1103 public pbc::RepeatedField<int> RepeatedInt32 {
1111 private readonly pbc::RepeatedField<long> repeatedInt64_ = new pbc::RepeatedField<long>();
1112 public pbc::RepeatedField<long> RepeatedInt64 {
1120 private readonly pbc::RepeatedField<uint> repeatedUint32_ = new pbc::RepeatedField<uint>();
1121 public pbc::RepeatedField<uint> RepeatedUint32 {
1129 private readonly pbc::RepeatedField<ulong> repeatedUint64_ = new pbc::RepeatedField<ulong>();
1130 public pbc::RepeatedField<ulong> RepeatedUint64 {
1138 private readonly pbc::RepeatedField<int> repeatedSint32_ = new pbc::RepeatedField<int>();
1139 public pbc::RepeatedField<int> RepeatedSint32 {
[all …]
/external/tensorflow/tensorflow/core/example/
Dfeature_util.cc60 const protobuf::RepeatedField<protobuf_int64>& GetFeatureValues<protobuf_int64>( in GetFeatureValues()
66 protobuf::RepeatedField<protobuf_int64>* GetFeatureValues<protobuf_int64>( in GetFeatureValues()
72 const protobuf::RepeatedField<float>& GetFeatureValues<float>( in GetFeatureValues()
78 protobuf::RepeatedField<float>* GetFeatureValues<float>(Feature* feature) { in GetFeatureValues()
126 const protobuf::RepeatedField<protobuf_int64>& GetFeatureValues<protobuf_int64>(
130 protobuf::RepeatedField<protobuf_int64>* GetFeatureValues<protobuf_int64>(
134 const protobuf::RepeatedField<float>& GetFeatureValues<float>(
138 protobuf::RepeatedField<float>* GetFeatureValues<float>(Feature* feature);
/external/protobuf/csharp/src/Google.Protobuf/Reflection/
DDescriptor.cs205 …private readonly pbc::RepeatedField<global::Google.Protobuf.Reflection.FileDescriptorProto> file_ …
206 public pbc::RepeatedField<global::Google.Protobuf.Reflection.FileDescriptorProto> File {
340 private readonly pbc::RepeatedField<string> dependency_ = new pbc::RepeatedField<string>();
344 public pbc::RepeatedField<string> Dependency {
352 private readonly pbc::RepeatedField<int> publicDependency_ = new pbc::RepeatedField<int>();
356 public pbc::RepeatedField<int> PublicDependency {
364 private readonly pbc::RepeatedField<int> weakDependency_ = new pbc::RepeatedField<int>();
369 public pbc::RepeatedField<int> WeakDependency {
377 …private readonly pbc::RepeatedField<global::Google.Protobuf.Reflection.DescriptorProto> messageTyp…
381 public pbc::RepeatedField<global::Google.Protobuf.Reflection.DescriptorProto> MessageType {
[all …]
/external/protobuf/csharp/src/Google.Protobuf/Collections/
DRepeatedField.cs50 …public sealed class RepeatedField<T> : IList<T>, IList, IDeepCloneable<RepeatedField<T>>, IEquatab… class
69 public RepeatedField<T> Clone() in Clone()
71 RepeatedField<T> clone = new RepeatedField<T>(); in Clone()
301 public void Add(RepeatedField<T> values) in Add()
353 return Equals(obj as RepeatedField<T>); in Equals()
388 public bool Equals(RepeatedField<T> other) in Equals()
/external/protobuf/csharp/src/Google.Protobuf/WellKnownTypes/
DType.cs144 …private readonly pbc::RepeatedField<global::Google.Protobuf.WellKnownTypes.Field> fields_ = new pb…
148 public pbc::RepeatedField<global::Google.Protobuf.WellKnownTypes.Field> Fields {
156 private readonly pbc::RepeatedField<string> oneofs_ = new pbc::RepeatedField<string>();
160 public pbc::RepeatedField<string> Oneofs {
168 …private readonly pbc::RepeatedField<global::Google.Protobuf.WellKnownTypes.Option> options_ = new …
172 public pbc::RepeatedField<global::Google.Protobuf.WellKnownTypes.Option> Options {
469 …private readonly pbc::RepeatedField<global::Google.Protobuf.WellKnownTypes.Option> options_ = new …
473 public pbc::RepeatedField<global::Google.Protobuf.WellKnownTypes.Option> Options {
868 …private readonly pbc::RepeatedField<global::Google.Protobuf.WellKnownTypes.EnumValue> enumvalue_ =…
872 public pbc::RepeatedField<global::Google.Protobuf.WellKnownTypes.EnumValue> Enumvalue {
[all …]
DApi.cs108 …private readonly pbc::RepeatedField<global::Google.Protobuf.WellKnownTypes.Method> methods_ = new …
112 public pbc::RepeatedField<global::Google.Protobuf.WellKnownTypes.Method> Methods {
120 …private readonly pbc::RepeatedField<global::Google.Protobuf.WellKnownTypes.Option> options_ = new …
124 public pbc::RepeatedField<global::Google.Protobuf.WellKnownTypes.Option> Options {
178 …private readonly pbc::RepeatedField<global::Google.Protobuf.WellKnownTypes.Mixin> mixins_ = new pb…
182 public pbc::RepeatedField<global::Google.Protobuf.WellKnownTypes.Mixin> Mixins {
451 …private readonly pbc::RepeatedField<global::Google.Protobuf.WellKnownTypes.Option> options_ = new …
455 public pbc::RepeatedField<global::Google.Protobuf.WellKnownTypes.Option> Options {
DFieldMask.cs221 private readonly pbc::RepeatedField<string> paths_ = new pbc::RepeatedField<string>();
225 public pbc::RepeatedField<string> Paths {
/external/protobuf/csharp/src/AddressBook/
DAddressbook.cs116 …ate readonly pbc::RepeatedField<global::Google.Protobuf.Examples.AddressBook.Person.Types.PhoneNum…
117 …public pbc::RepeatedField<global::Google.Protobuf.Examples.AddressBook.Person.Types.PhoneNumber> P…
405 …private readonly pbc::RepeatedField<global::Google.Protobuf.Examples.AddressBook.Person> people_ =…
406 public pbc::RepeatedField<global::Google.Protobuf.Examples.AddressBook.Person> People {
/external/tensorflow/tensorflow/contrib/boosted_trees/resources/
Ddecision_tree_ensemble_resource.h115 protobuf::RepeatedField<protobuf_int64>* used_ids = in MaybeAddUsedHandler()
118 protobuf::RepeatedField<protobuf_int64>::iterator first = in MaybeAddUsedHandler()

123