Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(142)

Side by Side Diff: third_party/protobuf/objectivec/GPBArray.h

Issue 1983203003: Update third_party/protobuf to protobuf-v3.0.0-beta-3 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: owners Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Protocol Buffers - Google's data interchange format 1 // Protocol Buffers - Google's data interchange format
2 // Copyright 2015 Google Inc. All rights reserved. 2 // Copyright 2015 Google Inc. All rights reserved.
3 // https://developers.google.com/protocol-buffers/ 3 // https://developers.google.com/protocol-buffers/
4 // 4 //
5 // Redistribution and use in source and binary forms, with or without 5 // Redistribution and use in source and binary forms, with or without
6 // modification, are permitted provided that the following conditions are 6 // modification, are permitted provided that the following conditions are
7 // met: 7 // met:
8 // 8 //
9 // * Redistributions of source code must retain the above copyright 9 // * Redistributions of source code must retain the above copyright
10 // notice, this list of conditions and the following disclaimer. 10 // notice, this list of conditions and the following disclaimer.
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
46 46
47 @interface GPBInt32Array : NSObject <NSCopying> 47 @interface GPBInt32Array : NSObject <NSCopying>
48 48
49 @property(nonatomic, readonly) NSUInteger count; 49 @property(nonatomic, readonly) NSUInteger count;
50 50
51 + (instancetype)array; 51 + (instancetype)array;
52 + (instancetype)arrayWithValue:(int32_t)value; 52 + (instancetype)arrayWithValue:(int32_t)value;
53 + (instancetype)arrayWithValueArray:(GPBInt32Array *)array; 53 + (instancetype)arrayWithValueArray:(GPBInt32Array *)array;
54 + (instancetype)arrayWithCapacity:(NSUInteger)count; 54 + (instancetype)arrayWithCapacity:(NSUInteger)count;
55 55
56 - (instancetype)init NS_DESIGNATED_INITIALIZER;
56 // Initializes the array, copying the values. 57 // Initializes the array, copying the values.
57 - (instancetype)initWithValues:(const int32_t [])values 58 - (instancetype)initWithValues:(const int32_t [])values
58 count:(NSUInteger)count NS_DESIGNATED_INITIALIZER; 59 count:(NSUInteger)count;
59 - (instancetype)initWithValueArray:(GPBInt32Array *)array; 60 - (instancetype)initWithValueArray:(GPBInt32Array *)array;
60 - (instancetype)initWithCapacity:(NSUInteger)count; 61 - (instancetype)initWithCapacity:(NSUInteger)count;
61 62
62 - (int32_t)valueAtIndex:(NSUInteger)index; 63 - (int32_t)valueAtIndex:(NSUInteger)index;
63 64
64 - (void)enumerateValuesWithBlock:(void (^)(int32_t value, NSUInteger idx, BOOL * stop))block; 65 - (void)enumerateValuesWithBlock:(void (^)(int32_t value, NSUInteger idx, BOOL * stop))block;
65 - (void)enumerateValuesWithOptions:(NSEnumerationOptions)opts 66 - (void)enumerateValuesWithOptions:(NSEnumerationOptions)opts
66 usingBlock:(void (^)(int32_t value, NSUInteger idx, BOOL *stop))block; 67 usingBlock:(void (^)(int32_t value, NSUInteger idx, BOOL *stop))block;
67 68
68 - (void)addValue:(int32_t)value; 69 - (void)addValue:(int32_t)value;
(...skipping 16 matching lines...) Expand all
85 86
86 @interface GPBUInt32Array : NSObject <NSCopying> 87 @interface GPBUInt32Array : NSObject <NSCopying>
87 88
88 @property(nonatomic, readonly) NSUInteger count; 89 @property(nonatomic, readonly) NSUInteger count;
89 90
90 + (instancetype)array; 91 + (instancetype)array;
91 + (instancetype)arrayWithValue:(uint32_t)value; 92 + (instancetype)arrayWithValue:(uint32_t)value;
92 + (instancetype)arrayWithValueArray:(GPBUInt32Array *)array; 93 + (instancetype)arrayWithValueArray:(GPBUInt32Array *)array;
93 + (instancetype)arrayWithCapacity:(NSUInteger)count; 94 + (instancetype)arrayWithCapacity:(NSUInteger)count;
94 95
96 - (instancetype)init NS_DESIGNATED_INITIALIZER;
95 // Initializes the array, copying the values. 97 // Initializes the array, copying the values.
96 - (instancetype)initWithValues:(const uint32_t [])values 98 - (instancetype)initWithValues:(const uint32_t [])values
97 count:(NSUInteger)count NS_DESIGNATED_INITIALIZER; 99 count:(NSUInteger)count;
98 - (instancetype)initWithValueArray:(GPBUInt32Array *)array; 100 - (instancetype)initWithValueArray:(GPBUInt32Array *)array;
99 - (instancetype)initWithCapacity:(NSUInteger)count; 101 - (instancetype)initWithCapacity:(NSUInteger)count;
100 102
101 - (uint32_t)valueAtIndex:(NSUInteger)index; 103 - (uint32_t)valueAtIndex:(NSUInteger)index;
102 104
103 - (void)enumerateValuesWithBlock:(void (^)(uint32_t value, NSUInteger idx, BOOL *stop))block; 105 - (void)enumerateValuesWithBlock:(void (^)(uint32_t value, NSUInteger idx, BOOL *stop))block;
104 - (void)enumerateValuesWithOptions:(NSEnumerationOptions)opts 106 - (void)enumerateValuesWithOptions:(NSEnumerationOptions)opts
105 usingBlock:(void (^)(uint32_t value, NSUInteger idx, BOO L *stop))block; 107 usingBlock:(void (^)(uint32_t value, NSUInteger idx, BOO L *stop))block;
106 108
107 - (void)addValue:(uint32_t)value; 109 - (void)addValue:(uint32_t)value;
(...skipping 16 matching lines...) Expand all
124 126
125 @interface GPBInt64Array : NSObject <NSCopying> 127 @interface GPBInt64Array : NSObject <NSCopying>
126 128
127 @property(nonatomic, readonly) NSUInteger count; 129 @property(nonatomic, readonly) NSUInteger count;
128 130
129 + (instancetype)array; 131 + (instancetype)array;
130 + (instancetype)arrayWithValue:(int64_t)value; 132 + (instancetype)arrayWithValue:(int64_t)value;
131 + (instancetype)arrayWithValueArray:(GPBInt64Array *)array; 133 + (instancetype)arrayWithValueArray:(GPBInt64Array *)array;
132 + (instancetype)arrayWithCapacity:(NSUInteger)count; 134 + (instancetype)arrayWithCapacity:(NSUInteger)count;
133 135
136 - (instancetype)init NS_DESIGNATED_INITIALIZER;
134 // Initializes the array, copying the values. 137 // Initializes the array, copying the values.
135 - (instancetype)initWithValues:(const int64_t [])values 138 - (instancetype)initWithValues:(const int64_t [])values
136 count:(NSUInteger)count NS_DESIGNATED_INITIALIZER; 139 count:(NSUInteger)count;
137 - (instancetype)initWithValueArray:(GPBInt64Array *)array; 140 - (instancetype)initWithValueArray:(GPBInt64Array *)array;
138 - (instancetype)initWithCapacity:(NSUInteger)count; 141 - (instancetype)initWithCapacity:(NSUInteger)count;
139 142
140 - (int64_t)valueAtIndex:(NSUInteger)index; 143 - (int64_t)valueAtIndex:(NSUInteger)index;
141 144
142 - (void)enumerateValuesWithBlock:(void (^)(int64_t value, NSUInteger idx, BOOL * stop))block; 145 - (void)enumerateValuesWithBlock:(void (^)(int64_t value, NSUInteger idx, BOOL * stop))block;
143 - (void)enumerateValuesWithOptions:(NSEnumerationOptions)opts 146 - (void)enumerateValuesWithOptions:(NSEnumerationOptions)opts
144 usingBlock:(void (^)(int64_t value, NSUInteger idx, BOOL *stop))block; 147 usingBlock:(void (^)(int64_t value, NSUInteger idx, BOOL *stop))block;
145 148
146 - (void)addValue:(int64_t)value; 149 - (void)addValue:(int64_t)value;
(...skipping 16 matching lines...) Expand all
163 166
164 @interface GPBUInt64Array : NSObject <NSCopying> 167 @interface GPBUInt64Array : NSObject <NSCopying>
165 168
166 @property(nonatomic, readonly) NSUInteger count; 169 @property(nonatomic, readonly) NSUInteger count;
167 170
168 + (instancetype)array; 171 + (instancetype)array;
169 + (instancetype)arrayWithValue:(uint64_t)value; 172 + (instancetype)arrayWithValue:(uint64_t)value;
170 + (instancetype)arrayWithValueArray:(GPBUInt64Array *)array; 173 + (instancetype)arrayWithValueArray:(GPBUInt64Array *)array;
171 + (instancetype)arrayWithCapacity:(NSUInteger)count; 174 + (instancetype)arrayWithCapacity:(NSUInteger)count;
172 175
176 - (instancetype)init NS_DESIGNATED_INITIALIZER;
173 // Initializes the array, copying the values. 177 // Initializes the array, copying the values.
174 - (instancetype)initWithValues:(const uint64_t [])values 178 - (instancetype)initWithValues:(const uint64_t [])values
175 count:(NSUInteger)count NS_DESIGNATED_INITIALIZER; 179 count:(NSUInteger)count;
176 - (instancetype)initWithValueArray:(GPBUInt64Array *)array; 180 - (instancetype)initWithValueArray:(GPBUInt64Array *)array;
177 - (instancetype)initWithCapacity:(NSUInteger)count; 181 - (instancetype)initWithCapacity:(NSUInteger)count;
178 182
179 - (uint64_t)valueAtIndex:(NSUInteger)index; 183 - (uint64_t)valueAtIndex:(NSUInteger)index;
180 184
181 - (void)enumerateValuesWithBlock:(void (^)(uint64_t value, NSUInteger idx, BOOL *stop))block; 185 - (void)enumerateValuesWithBlock:(void (^)(uint64_t value, NSUInteger idx, BOOL *stop))block;
182 - (void)enumerateValuesWithOptions:(NSEnumerationOptions)opts 186 - (void)enumerateValuesWithOptions:(NSEnumerationOptions)opts
183 usingBlock:(void (^)(uint64_t value, NSUInteger idx, BOO L *stop))block; 187 usingBlock:(void (^)(uint64_t value, NSUInteger idx, BOO L *stop))block;
184 188
185 - (void)addValue:(uint64_t)value; 189 - (void)addValue:(uint64_t)value;
(...skipping 16 matching lines...) Expand all
202 206
203 @interface GPBFloatArray : NSObject <NSCopying> 207 @interface GPBFloatArray : NSObject <NSCopying>
204 208
205 @property(nonatomic, readonly) NSUInteger count; 209 @property(nonatomic, readonly) NSUInteger count;
206 210
207 + (instancetype)array; 211 + (instancetype)array;
208 + (instancetype)arrayWithValue:(float)value; 212 + (instancetype)arrayWithValue:(float)value;
209 + (instancetype)arrayWithValueArray:(GPBFloatArray *)array; 213 + (instancetype)arrayWithValueArray:(GPBFloatArray *)array;
210 + (instancetype)arrayWithCapacity:(NSUInteger)count; 214 + (instancetype)arrayWithCapacity:(NSUInteger)count;
211 215
216 - (instancetype)init NS_DESIGNATED_INITIALIZER;
212 // Initializes the array, copying the values. 217 // Initializes the array, copying the values.
213 - (instancetype)initWithValues:(const float [])values 218 - (instancetype)initWithValues:(const float [])values
214 count:(NSUInteger)count NS_DESIGNATED_INITIALIZER; 219 count:(NSUInteger)count;
215 - (instancetype)initWithValueArray:(GPBFloatArray *)array; 220 - (instancetype)initWithValueArray:(GPBFloatArray *)array;
216 - (instancetype)initWithCapacity:(NSUInteger)count; 221 - (instancetype)initWithCapacity:(NSUInteger)count;
217 222
218 - (float)valueAtIndex:(NSUInteger)index; 223 - (float)valueAtIndex:(NSUInteger)index;
219 224
220 - (void)enumerateValuesWithBlock:(void (^)(float value, NSUInteger idx, BOOL *st op))block; 225 - (void)enumerateValuesWithBlock:(void (^)(float value, NSUInteger idx, BOOL *st op))block;
221 - (void)enumerateValuesWithOptions:(NSEnumerationOptions)opts 226 - (void)enumerateValuesWithOptions:(NSEnumerationOptions)opts
222 usingBlock:(void (^)(float value, NSUInteger idx, BOOL * stop))block; 227 usingBlock:(void (^)(float value, NSUInteger idx, BOOL * stop))block;
223 228
224 - (void)addValue:(float)value; 229 - (void)addValue:(float)value;
(...skipping 16 matching lines...) Expand all
241 246
242 @interface GPBDoubleArray : NSObject <NSCopying> 247 @interface GPBDoubleArray : NSObject <NSCopying>
243 248
244 @property(nonatomic, readonly) NSUInteger count; 249 @property(nonatomic, readonly) NSUInteger count;
245 250
246 + (instancetype)array; 251 + (instancetype)array;
247 + (instancetype)arrayWithValue:(double)value; 252 + (instancetype)arrayWithValue:(double)value;
248 + (instancetype)arrayWithValueArray:(GPBDoubleArray *)array; 253 + (instancetype)arrayWithValueArray:(GPBDoubleArray *)array;
249 + (instancetype)arrayWithCapacity:(NSUInteger)count; 254 + (instancetype)arrayWithCapacity:(NSUInteger)count;
250 255
256 - (instancetype)init NS_DESIGNATED_INITIALIZER;
251 // Initializes the array, copying the values. 257 // Initializes the array, copying the values.
252 - (instancetype)initWithValues:(const double [])values 258 - (instancetype)initWithValues:(const double [])values
253 count:(NSUInteger)count NS_DESIGNATED_INITIALIZER; 259 count:(NSUInteger)count;
254 - (instancetype)initWithValueArray:(GPBDoubleArray *)array; 260 - (instancetype)initWithValueArray:(GPBDoubleArray *)array;
255 - (instancetype)initWithCapacity:(NSUInteger)count; 261 - (instancetype)initWithCapacity:(NSUInteger)count;
256 262
257 - (double)valueAtIndex:(NSUInteger)index; 263 - (double)valueAtIndex:(NSUInteger)index;
258 264
259 - (void)enumerateValuesWithBlock:(void (^)(double value, NSUInteger idx, BOOL *s top))block; 265 - (void)enumerateValuesWithBlock:(void (^)(double value, NSUInteger idx, BOOL *s top))block;
260 - (void)enumerateValuesWithOptions:(NSEnumerationOptions)opts 266 - (void)enumerateValuesWithOptions:(NSEnumerationOptions)opts
261 usingBlock:(void (^)(double value, NSUInteger idx, BOOL *stop))block; 267 usingBlock:(void (^)(double value, NSUInteger idx, BOOL *stop))block;
262 268
263 - (void)addValue:(double)value; 269 - (void)addValue:(double)value;
(...skipping 16 matching lines...) Expand all
280 286
281 @interface GPBBoolArray : NSObject <NSCopying> 287 @interface GPBBoolArray : NSObject <NSCopying>
282 288
283 @property(nonatomic, readonly) NSUInteger count; 289 @property(nonatomic, readonly) NSUInteger count;
284 290
285 + (instancetype)array; 291 + (instancetype)array;
286 + (instancetype)arrayWithValue:(BOOL)value; 292 + (instancetype)arrayWithValue:(BOOL)value;
287 + (instancetype)arrayWithValueArray:(GPBBoolArray *)array; 293 + (instancetype)arrayWithValueArray:(GPBBoolArray *)array;
288 + (instancetype)arrayWithCapacity:(NSUInteger)count; 294 + (instancetype)arrayWithCapacity:(NSUInteger)count;
289 295
296 - (instancetype)init NS_DESIGNATED_INITIALIZER;
290 // Initializes the array, copying the values. 297 // Initializes the array, copying the values.
291 - (instancetype)initWithValues:(const BOOL [])values 298 - (instancetype)initWithValues:(const BOOL [])values
292 count:(NSUInteger)count NS_DESIGNATED_INITIALIZER; 299 count:(NSUInteger)count;
293 - (instancetype)initWithValueArray:(GPBBoolArray *)array; 300 - (instancetype)initWithValueArray:(GPBBoolArray *)array;
294 - (instancetype)initWithCapacity:(NSUInteger)count; 301 - (instancetype)initWithCapacity:(NSUInteger)count;
295 302
296 - (BOOL)valueAtIndex:(NSUInteger)index; 303 - (BOOL)valueAtIndex:(NSUInteger)index;
297 304
298 - (void)enumerateValuesWithBlock:(void (^)(BOOL value, NSUInteger idx, BOOL *sto p))block; 305 - (void)enumerateValuesWithBlock:(void (^)(BOOL value, NSUInteger idx, BOOL *sto p))block;
299 - (void)enumerateValuesWithOptions:(NSEnumerationOptions)opts 306 - (void)enumerateValuesWithOptions:(NSEnumerationOptions)opts
300 usingBlock:(void (^)(BOOL value, NSUInteger idx, BOOL *s top))block; 307 usingBlock:(void (^)(BOOL value, NSUInteger idx, BOOL *s top))block;
301 308
302 - (void)addValue:(BOOL)value; 309 - (void)addValue:(BOOL)value;
(...skipping 20 matching lines...) Expand all
323 @property(nonatomic, readonly) GPBEnumValidationFunc validationFunc; 330 @property(nonatomic, readonly) GPBEnumValidationFunc validationFunc;
324 331
325 + (instancetype)array; 332 + (instancetype)array;
326 + (instancetype)arrayWithValidationFunction:(nullable GPBEnumValidationFunc)func ; 333 + (instancetype)arrayWithValidationFunction:(nullable GPBEnumValidationFunc)func ;
327 + (instancetype)arrayWithValidationFunction:(nullable GPBEnumValidationFunc)func 334 + (instancetype)arrayWithValidationFunction:(nullable GPBEnumValidationFunc)func
328 rawValue:(int32_t)value; 335 rawValue:(int32_t)value;
329 + (instancetype)arrayWithValueArray:(GPBEnumArray *)array; 336 + (instancetype)arrayWithValueArray:(GPBEnumArray *)array;
330 + (instancetype)arrayWithValidationFunction:(nullable GPBEnumValidationFunc)func 337 + (instancetype)arrayWithValidationFunction:(nullable GPBEnumValidationFunc)func
331 capacity:(NSUInteger)count; 338 capacity:(NSUInteger)count;
332 339
333 - (instancetype)initWithValidationFunction:(nullable GPBEnumValidationFunc)func; 340 - (instancetype)initWithValidationFunction:(nullable GPBEnumValidationFunc)func
341 NS_DESIGNATED_INITIALIZER;
334 342
335 // Initializes the array, copying the values. 343 // Initializes the array, copying the values.
336 - (instancetype)initWithValidationFunction:(nullable GPBEnumValidationFunc)func 344 - (instancetype)initWithValidationFunction:(nullable GPBEnumValidationFunc)func
337 rawValues:(const int32_t [])values 345 rawValues:(const int32_t [])values
338 count:(NSUInteger)count NS_DESIGNATED_INITI ALIZER; 346 count:(NSUInteger)count;
339 - (instancetype)initWithValueArray:(GPBEnumArray *)array; 347 - (instancetype)initWithValueArray:(GPBEnumArray *)array;
340 - (instancetype)initWithValidationFunction:(nullable GPBEnumValidationFunc)func 348 - (instancetype)initWithValidationFunction:(nullable GPBEnumValidationFunc)func
341 capacity:(NSUInteger)count; 349 capacity:(NSUInteger)count;
342 350
343 // These will return kGPBUnrecognizedEnumeratorValue if the value at index is no t a 351 // These will return kGPBUnrecognizedEnumeratorValue if the value at index is no t a
344 // valid enumerator as defined by validationFunc. If the actual value is 352 // valid enumerator as defined by validationFunc. If the actual value is
345 // desired, use "raw" version of the method. 353 // desired, use "raw" version of the method.
346 354
347 - (int32_t)valueAtIndex:(NSUInteger)index; 355 - (int32_t)valueAtIndex:(NSUInteger)index;
348 356
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
415 //% 423 //%
416 //%@interface GPB##NAME##Array : NSObject <NSCopying> 424 //%@interface GPB##NAME##Array : NSObject <NSCopying>
417 //% 425 //%
418 //%@property(nonatomic, readonly) NSUInteger count; 426 //%@property(nonatomic, readonly) NSUInteger count;
419 //% 427 //%
420 //%+ (instancetype)array; 428 //%+ (instancetype)array;
421 //%+ (instancetype)arrayWithValue:(TYPE)value; 429 //%+ (instancetype)arrayWithValue:(TYPE)value;
422 //%+ (instancetype)arrayWithValueArray:(GPB##NAME##Array *)array; 430 //%+ (instancetype)arrayWithValueArray:(GPB##NAME##Array *)array;
423 //%+ (instancetype)arrayWithCapacity:(NSUInteger)count; 431 //%+ (instancetype)arrayWithCapacity:(NSUInteger)count;
424 //% 432 //%
433 //%- (instancetype)init NS_DESIGNATED_INITIALIZER;
425 //%// Initializes the array, copying the values. 434 //%// Initializes the array, copying the values.
426 //%- (instancetype)initWithValues:(const TYPE [])values 435 //%- (instancetype)initWithValues:(const TYPE [])values
427 //% count:(NSUInteger)count NS_DESIGNATED_INITIALIZER; 436 //% count:(NSUInteger)count;
428 //%- (instancetype)initWithValueArray:(GPB##NAME##Array *)array; 437 //%- (instancetype)initWithValueArray:(GPB##NAME##Array *)array;
429 //%- (instancetype)initWithCapacity:(NSUInteger)count; 438 //%- (instancetype)initWithCapacity:(NSUInteger)count;
430 //% 439 //%
431 //%ARRAY_IMMUTABLE_INTERFACE(NAME, TYPE, Basic) 440 //%ARRAY_IMMUTABLE_INTERFACE(NAME, TYPE, Basic)
432 //% 441 //%
433 //%ARRAY_MUTABLE_INTERFACE(NAME, TYPE, Basic) 442 //%ARRAY_MUTABLE_INTERFACE(NAME, TYPE, Basic)
434 //% 443 //%
435 //%@end 444 //%@end
436 //% 445 //%
437 446
(...skipping 10 matching lines...) Expand all
448 //%@property(nonatomic, readonly) GPBEnumValidationFunc validationFunc; 457 //%@property(nonatomic, readonly) GPBEnumValidationFunc validationFunc;
449 //% 458 //%
450 //%+ (instancetype)array; 459 //%+ (instancetype)array;
451 //%+ (instancetype)arrayWithValidationFunction:(nullable GPBEnumValidationFunc)f unc; 460 //%+ (instancetype)arrayWithValidationFunction:(nullable GPBEnumValidationFunc)f unc;
452 //%+ (instancetype)arrayWithValidationFunction:(nullable GPBEnumValidationFunc)f unc 461 //%+ (instancetype)arrayWithValidationFunction:(nullable GPBEnumValidationFunc)f unc
453 //% rawValue:(TYPE)value; 462 //% rawValue:(TYPE)value;
454 //%+ (instancetype)arrayWithValueArray:(GPB##NAME##Array *)array; 463 //%+ (instancetype)arrayWithValueArray:(GPB##NAME##Array *)array;
455 //%+ (instancetype)arrayWithValidationFunction:(nullable GPBEnumValidationFunc)f unc 464 //%+ (instancetype)arrayWithValidationFunction:(nullable GPBEnumValidationFunc)f unc
456 //% capacity:(NSUInteger)count; 465 //% capacity:(NSUInteger)count;
457 //% 466 //%
458 //%- (instancetype)initWithValidationFunction:(nullable GPBEnumValidationFunc)fu nc; 467 //%- (instancetype)initWithValidationFunction:(nullable GPBEnumValidationFunc)fu nc
468 //% NS_DESIGNATED_INITIALIZER;
459 //% 469 //%
460 //%// Initializes the array, copying the values. 470 //%// Initializes the array, copying the values.
461 //%- (instancetype)initWithValidationFunction:(nullable GPBEnumValidationFunc)fu nc 471 //%- (instancetype)initWithValidationFunction:(nullable GPBEnumValidationFunc)fu nc
462 //% rawValues:(const TYPE [])values 472 //% rawValues:(const TYPE [])values
463 //% count:(NSUInteger)count NS_DESIGNATED_IN ITIALIZER; 473 //% count:(NSUInteger)count;
464 //%- (instancetype)initWithValueArray:(GPB##NAME##Array *)array; 474 //%- (instancetype)initWithValueArray:(GPB##NAME##Array *)array;
465 //%- (instancetype)initWithValidationFunction:(nullable GPBEnumValidationFunc)fu nc 475 //%- (instancetype)initWithValidationFunction:(nullable GPBEnumValidationFunc)fu nc
466 //% capacity:(NSUInteger)count; 476 //% capacity:(NSUInteger)count;
467 //% 477 //%
468 //%// These will return kGPBUnrecognizedEnumeratorValue if the value at index is not a 478 //%// These will return kGPBUnrecognizedEnumeratorValue if the value at index is not a
469 //%// valid enumerator as defined by validationFunc. If the actual value is 479 //%// valid enumerator as defined by validationFunc. If the actual value is
470 //%// desired, use "raw" version of the method. 480 //%// desired, use "raw" version of the method.
471 //% 481 //%
472 //%ARRAY_IMMUTABLE_INTERFACE(NAME, TYPE, NAME) 482 //%ARRAY_IMMUTABLE_INTERFACE(NAME, TYPE, NAME)
473 //% 483 //%
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
530 //%- (void)addRawValue:(TYPE)value; 540 //%- (void)addRawValue:(TYPE)value;
531 //%- (void)addRawValuesFromArray:(GPB##NAME##Array *)array; 541 //%- (void)addRawValuesFromArray:(GPB##NAME##Array *)array;
532 //%- (void)addRawValues:(const TYPE [])values count:(NSUInteger)count; 542 //%- (void)addRawValues:(const TYPE [])values count:(NSUInteger)count;
533 //% 543 //%
534 //%- (void)insertRawValue:(TYPE)value atIndex:(NSUInteger)index; 544 //%- (void)insertRawValue:(TYPE)value atIndex:(NSUInteger)index;
535 //% 545 //%
536 //%- (void)replaceValueAtIndex:(NSUInteger)index withRawValue:(TYPE)value; 546 //%- (void)replaceValueAtIndex:(NSUInteger)index withRawValue:(TYPE)value;
537 //% 547 //%
538 //%// No validation applies to these methods. 548 //%// No validation applies to these methods.
539 //% 549 //%
OLDNEW
« no previous file with comments | « third_party/protobuf/objectivec/DevTools/pddm.py ('k') | third_party/protobuf/objectivec/GPBArray.m » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698