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

Side by Side Diff: third_party/protobuf/objectivec/GPBDictionary.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 2008 Google Inc. All rights reserved. 2 // Copyright 2008 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 337 matching lines...) Expand 10 before | Expand all | Expand 10 after
348 348
349 // No validation applies to these methods. 349 // No validation applies to these methods.
350 350
351 - (void)removeValueForKey:(uint32_t)aKey; 351 - (void)removeValueForKey:(uint32_t)aKey;
352 - (void)removeAll; 352 - (void)removeAll;
353 353
354 @end 354 @end
355 355
356 #pragma mark - UInt32 -> Object 356 #pragma mark - UInt32 -> Object
357 357
358 @interface GPBUInt32ObjectDictionary : NSObject <NSCopying> 358 @interface GPBUInt32ObjectDictionary<__covariant ObjectType> : NSObject <NSCopyi ng>
359 359
360 @property(nonatomic, readonly) NSUInteger count; 360 @property(nonatomic, readonly) NSUInteger count;
361 361
362 + (instancetype)dictionary; 362 + (instancetype)dictionary;
363 + (instancetype)dictionaryWithObject:(id)object 363 + (instancetype)dictionaryWithObject:(ObjectType)object
364 forKey:(uint32_t)key; 364 forKey:(uint32_t)key;
365 + (instancetype)dictionaryWithObjects:(const id GPB_UNSAFE_UNRETAINED [])objects 365 + (instancetype)dictionaryWithObjects:(const ObjectType GPB_UNSAFE_UNRETAINED [] )objects
366 forKeys:(const uint32_t [])keys 366 forKeys:(const uint32_t [])keys
367 count:(NSUInteger)count; 367 count:(NSUInteger)count;
368 + (instancetype)dictionaryWithDictionary:(GPBUInt32ObjectDictionary *)dictionary ; 368 + (instancetype)dictionaryWithDictionary:(GPBUInt32ObjectDictionary *)dictionary ;
369 + (instancetype)dictionaryWithCapacity:(NSUInteger)numItems; 369 + (instancetype)dictionaryWithCapacity:(NSUInteger)numItems;
370 370
371 - (instancetype)initWithObjects:(const id GPB_UNSAFE_UNRETAINED [])objects 371 - (instancetype)initWithObjects:(const ObjectType GPB_UNSAFE_UNRETAINED [])objec ts
372 forKeys:(const uint32_t [])keys 372 forKeys:(const uint32_t [])keys
373 count:(NSUInteger)count NS_DESIGNATED_INITIALIZER; 373 count:(NSUInteger)count NS_DESIGNATED_INITIALIZER;
374 - (instancetype)initWithDictionary:(GPBUInt32ObjectDictionary *)dictionary; 374 - (instancetype)initWithDictionary:(GPBUInt32ObjectDictionary *)dictionary;
375 - (instancetype)initWithCapacity:(NSUInteger)numItems; 375 - (instancetype)initWithCapacity:(NSUInteger)numItems;
376 376
377 - (id)objectForKey:(uint32_t)key; 377 - (ObjectType)objectForKey:(uint32_t)key;
378 378
379 - (void)enumerateKeysAndObjectsUsingBlock: 379 - (void)enumerateKeysAndObjectsUsingBlock:
380 (void (^)(uint32_t key, id object, BOOL *stop))block; 380 (void (^)(uint32_t key, ObjectType object, BOOL *stop))block;
381 381
382 - (void)addEntriesFromDictionary:(GPBUInt32ObjectDictionary *)otherDictionary; 382 - (void)addEntriesFromDictionary:(GPBUInt32ObjectDictionary *)otherDictionary;
383 383
384 - (void)setObject:(id)object forKey:(uint32_t)key; 384 - (void)setObject:(ObjectType)object forKey:(uint32_t)key;
385 385
386 - (void)removeObjectForKey:(uint32_t)aKey; 386 - (void)removeObjectForKey:(uint32_t)aKey;
387 - (void)removeAll; 387 - (void)removeAll;
388 388
389 @end 389 @end
390 390
391 #pragma mark - Int32 -> UInt32 391 #pragma mark - Int32 -> UInt32
392 392
393 @interface GPBInt32UInt32Dictionary : NSObject <NSCopying> 393 @interface GPBInt32UInt32Dictionary : NSObject <NSCopying>
394 394
(...skipping 299 matching lines...) Expand 10 before | Expand all | Expand 10 after
694 694
695 // No validation applies to these methods. 695 // No validation applies to these methods.
696 696
697 - (void)removeValueForKey:(int32_t)aKey; 697 - (void)removeValueForKey:(int32_t)aKey;
698 - (void)removeAll; 698 - (void)removeAll;
699 699
700 @end 700 @end
701 701
702 #pragma mark - Int32 -> Object 702 #pragma mark - Int32 -> Object
703 703
704 @interface GPBInt32ObjectDictionary : NSObject <NSCopying> 704 @interface GPBInt32ObjectDictionary<__covariant ObjectType> : NSObject <NSCopyin g>
705 705
706 @property(nonatomic, readonly) NSUInteger count; 706 @property(nonatomic, readonly) NSUInteger count;
707 707
708 + (instancetype)dictionary; 708 + (instancetype)dictionary;
709 + (instancetype)dictionaryWithObject:(id)object 709 + (instancetype)dictionaryWithObject:(ObjectType)object
710 forKey:(int32_t)key; 710 forKey:(int32_t)key;
711 + (instancetype)dictionaryWithObjects:(const id GPB_UNSAFE_UNRETAINED [])objects 711 + (instancetype)dictionaryWithObjects:(const ObjectType GPB_UNSAFE_UNRETAINED [] )objects
712 forKeys:(const int32_t [])keys 712 forKeys:(const int32_t [])keys
713 count:(NSUInteger)count; 713 count:(NSUInteger)count;
714 + (instancetype)dictionaryWithDictionary:(GPBInt32ObjectDictionary *)dictionary; 714 + (instancetype)dictionaryWithDictionary:(GPBInt32ObjectDictionary *)dictionary;
715 + (instancetype)dictionaryWithCapacity:(NSUInteger)numItems; 715 + (instancetype)dictionaryWithCapacity:(NSUInteger)numItems;
716 716
717 - (instancetype)initWithObjects:(const id GPB_UNSAFE_UNRETAINED [])objects 717 - (instancetype)initWithObjects:(const ObjectType GPB_UNSAFE_UNRETAINED [])objec ts
718 forKeys:(const int32_t [])keys 718 forKeys:(const int32_t [])keys
719 count:(NSUInteger)count NS_DESIGNATED_INITIALIZER; 719 count:(NSUInteger)count NS_DESIGNATED_INITIALIZER;
720 - (instancetype)initWithDictionary:(GPBInt32ObjectDictionary *)dictionary; 720 - (instancetype)initWithDictionary:(GPBInt32ObjectDictionary *)dictionary;
721 - (instancetype)initWithCapacity:(NSUInteger)numItems; 721 - (instancetype)initWithCapacity:(NSUInteger)numItems;
722 722
723 - (id)objectForKey:(int32_t)key; 723 - (ObjectType)objectForKey:(int32_t)key;
724 724
725 - (void)enumerateKeysAndObjectsUsingBlock: 725 - (void)enumerateKeysAndObjectsUsingBlock:
726 (void (^)(int32_t key, id object, BOOL *stop))block; 726 (void (^)(int32_t key, ObjectType object, BOOL *stop))block;
727 727
728 - (void)addEntriesFromDictionary:(GPBInt32ObjectDictionary *)otherDictionary; 728 - (void)addEntriesFromDictionary:(GPBInt32ObjectDictionary *)otherDictionary;
729 729
730 - (void)setObject:(id)object forKey:(int32_t)key; 730 - (void)setObject:(ObjectType)object forKey:(int32_t)key;
731 731
732 - (void)removeObjectForKey:(int32_t)aKey; 732 - (void)removeObjectForKey:(int32_t)aKey;
733 - (void)removeAll; 733 - (void)removeAll;
734 734
735 @end 735 @end
736 736
737 #pragma mark - UInt64 -> UInt32 737 #pragma mark - UInt64 -> UInt32
738 738
739 @interface GPBUInt64UInt32Dictionary : NSObject <NSCopying> 739 @interface GPBUInt64UInt32Dictionary : NSObject <NSCopying>
740 740
(...skipping 299 matching lines...) Expand 10 before | Expand all | Expand 10 after
1040 1040
1041 // No validation applies to these methods. 1041 // No validation applies to these methods.
1042 1042
1043 - (void)removeValueForKey:(uint64_t)aKey; 1043 - (void)removeValueForKey:(uint64_t)aKey;
1044 - (void)removeAll; 1044 - (void)removeAll;
1045 1045
1046 @end 1046 @end
1047 1047
1048 #pragma mark - UInt64 -> Object 1048 #pragma mark - UInt64 -> Object
1049 1049
1050 @interface GPBUInt64ObjectDictionary : NSObject <NSCopying> 1050 @interface GPBUInt64ObjectDictionary<__covariant ObjectType> : NSObject <NSCopyi ng>
1051 1051
1052 @property(nonatomic, readonly) NSUInteger count; 1052 @property(nonatomic, readonly) NSUInteger count;
1053 1053
1054 + (instancetype)dictionary; 1054 + (instancetype)dictionary;
1055 + (instancetype)dictionaryWithObject:(id)object 1055 + (instancetype)dictionaryWithObject:(ObjectType)object
1056 forKey:(uint64_t)key; 1056 forKey:(uint64_t)key;
1057 + (instancetype)dictionaryWithObjects:(const id GPB_UNSAFE_UNRETAINED [])objects 1057 + (instancetype)dictionaryWithObjects:(const ObjectType GPB_UNSAFE_UNRETAINED [] )objects
1058 forKeys:(const uint64_t [])keys 1058 forKeys:(const uint64_t [])keys
1059 count:(NSUInteger)count; 1059 count:(NSUInteger)count;
1060 + (instancetype)dictionaryWithDictionary:(GPBUInt64ObjectDictionary *)dictionary ; 1060 + (instancetype)dictionaryWithDictionary:(GPBUInt64ObjectDictionary *)dictionary ;
1061 + (instancetype)dictionaryWithCapacity:(NSUInteger)numItems; 1061 + (instancetype)dictionaryWithCapacity:(NSUInteger)numItems;
1062 1062
1063 - (instancetype)initWithObjects:(const id GPB_UNSAFE_UNRETAINED [])objects 1063 - (instancetype)initWithObjects:(const ObjectType GPB_UNSAFE_UNRETAINED [])objec ts
1064 forKeys:(const uint64_t [])keys 1064 forKeys:(const uint64_t [])keys
1065 count:(NSUInteger)count NS_DESIGNATED_INITIALIZER; 1065 count:(NSUInteger)count NS_DESIGNATED_INITIALIZER;
1066 - (instancetype)initWithDictionary:(GPBUInt64ObjectDictionary *)dictionary; 1066 - (instancetype)initWithDictionary:(GPBUInt64ObjectDictionary *)dictionary;
1067 - (instancetype)initWithCapacity:(NSUInteger)numItems; 1067 - (instancetype)initWithCapacity:(NSUInteger)numItems;
1068 1068
1069 - (id)objectForKey:(uint64_t)key; 1069 - (ObjectType)objectForKey:(uint64_t)key;
1070 1070
1071 - (void)enumerateKeysAndObjectsUsingBlock: 1071 - (void)enumerateKeysAndObjectsUsingBlock:
1072 (void (^)(uint64_t key, id object, BOOL *stop))block; 1072 (void (^)(uint64_t key, ObjectType object, BOOL *stop))block;
1073 1073
1074 - (void)addEntriesFromDictionary:(GPBUInt64ObjectDictionary *)otherDictionary; 1074 - (void)addEntriesFromDictionary:(GPBUInt64ObjectDictionary *)otherDictionary;
1075 1075
1076 - (void)setObject:(id)object forKey:(uint64_t)key; 1076 - (void)setObject:(ObjectType)object forKey:(uint64_t)key;
1077 1077
1078 - (void)removeObjectForKey:(uint64_t)aKey; 1078 - (void)removeObjectForKey:(uint64_t)aKey;
1079 - (void)removeAll; 1079 - (void)removeAll;
1080 1080
1081 @end 1081 @end
1082 1082
1083 #pragma mark - Int64 -> UInt32 1083 #pragma mark - Int64 -> UInt32
1084 1084
1085 @interface GPBInt64UInt32Dictionary : NSObject <NSCopying> 1085 @interface GPBInt64UInt32Dictionary : NSObject <NSCopying>
1086 1086
(...skipping 299 matching lines...) Expand 10 before | Expand all | Expand 10 after
1386 1386
1387 // No validation applies to these methods. 1387 // No validation applies to these methods.
1388 1388
1389 - (void)removeValueForKey:(int64_t)aKey; 1389 - (void)removeValueForKey:(int64_t)aKey;
1390 - (void)removeAll; 1390 - (void)removeAll;
1391 1391
1392 @end 1392 @end
1393 1393
1394 #pragma mark - Int64 -> Object 1394 #pragma mark - Int64 -> Object
1395 1395
1396 @interface GPBInt64ObjectDictionary : NSObject <NSCopying> 1396 @interface GPBInt64ObjectDictionary<__covariant ObjectType> : NSObject <NSCopyin g>
1397 1397
1398 @property(nonatomic, readonly) NSUInteger count; 1398 @property(nonatomic, readonly) NSUInteger count;
1399 1399
1400 + (instancetype)dictionary; 1400 + (instancetype)dictionary;
1401 + (instancetype)dictionaryWithObject:(id)object 1401 + (instancetype)dictionaryWithObject:(ObjectType)object
1402 forKey:(int64_t)key; 1402 forKey:(int64_t)key;
1403 + (instancetype)dictionaryWithObjects:(const id GPB_UNSAFE_UNRETAINED [])objects 1403 + (instancetype)dictionaryWithObjects:(const ObjectType GPB_UNSAFE_UNRETAINED [] )objects
1404 forKeys:(const int64_t [])keys 1404 forKeys:(const int64_t [])keys
1405 count:(NSUInteger)count; 1405 count:(NSUInteger)count;
1406 + (instancetype)dictionaryWithDictionary:(GPBInt64ObjectDictionary *)dictionary; 1406 + (instancetype)dictionaryWithDictionary:(GPBInt64ObjectDictionary *)dictionary;
1407 + (instancetype)dictionaryWithCapacity:(NSUInteger)numItems; 1407 + (instancetype)dictionaryWithCapacity:(NSUInteger)numItems;
1408 1408
1409 - (instancetype)initWithObjects:(const id GPB_UNSAFE_UNRETAINED [])objects 1409 - (instancetype)initWithObjects:(const ObjectType GPB_UNSAFE_UNRETAINED [])objec ts
1410 forKeys:(const int64_t [])keys 1410 forKeys:(const int64_t [])keys
1411 count:(NSUInteger)count NS_DESIGNATED_INITIALIZER; 1411 count:(NSUInteger)count NS_DESIGNATED_INITIALIZER;
1412 - (instancetype)initWithDictionary:(GPBInt64ObjectDictionary *)dictionary; 1412 - (instancetype)initWithDictionary:(GPBInt64ObjectDictionary *)dictionary;
1413 - (instancetype)initWithCapacity:(NSUInteger)numItems; 1413 - (instancetype)initWithCapacity:(NSUInteger)numItems;
1414 1414
1415 - (id)objectForKey:(int64_t)key; 1415 - (ObjectType)objectForKey:(int64_t)key;
1416 1416
1417 - (void)enumerateKeysAndObjectsUsingBlock: 1417 - (void)enumerateKeysAndObjectsUsingBlock:
1418 (void (^)(int64_t key, id object, BOOL *stop))block; 1418 (void (^)(int64_t key, ObjectType object, BOOL *stop))block;
1419 1419
1420 - (void)addEntriesFromDictionary:(GPBInt64ObjectDictionary *)otherDictionary; 1420 - (void)addEntriesFromDictionary:(GPBInt64ObjectDictionary *)otherDictionary;
1421 1421
1422 - (void)setObject:(id)object forKey:(int64_t)key; 1422 - (void)setObject:(ObjectType)object forKey:(int64_t)key;
1423 1423
1424 - (void)removeObjectForKey:(int64_t)aKey; 1424 - (void)removeObjectForKey:(int64_t)aKey;
1425 - (void)removeAll; 1425 - (void)removeAll;
1426 1426
1427 @end 1427 @end
1428 1428
1429 #pragma mark - Bool -> UInt32 1429 #pragma mark - Bool -> UInt32
1430 1430
1431 @interface GPBBoolUInt32Dictionary : NSObject <NSCopying> 1431 @interface GPBBoolUInt32Dictionary : NSObject <NSCopying>
1432 1432
(...skipping 299 matching lines...) Expand 10 before | Expand all | Expand 10 after
1732 1732
1733 // No validation applies to these methods. 1733 // No validation applies to these methods.
1734 1734
1735 - (void)removeValueForKey:(BOOL)aKey; 1735 - (void)removeValueForKey:(BOOL)aKey;
1736 - (void)removeAll; 1736 - (void)removeAll;
1737 1737
1738 @end 1738 @end
1739 1739
1740 #pragma mark - Bool -> Object 1740 #pragma mark - Bool -> Object
1741 1741
1742 @interface GPBBoolObjectDictionary : NSObject <NSCopying> 1742 @interface GPBBoolObjectDictionary<__covariant ObjectType> : NSObject <NSCopying >
1743 1743
1744 @property(nonatomic, readonly) NSUInteger count; 1744 @property(nonatomic, readonly) NSUInteger count;
1745 1745
1746 + (instancetype)dictionary; 1746 + (instancetype)dictionary;
1747 + (instancetype)dictionaryWithObject:(id)object 1747 + (instancetype)dictionaryWithObject:(ObjectType)object
1748 forKey:(BOOL)key; 1748 forKey:(BOOL)key;
1749 + (instancetype)dictionaryWithObjects:(const id GPB_UNSAFE_UNRETAINED [])objects 1749 + (instancetype)dictionaryWithObjects:(const ObjectType GPB_UNSAFE_UNRETAINED [] )objects
1750 forKeys:(const BOOL [])keys 1750 forKeys:(const BOOL [])keys
1751 count:(NSUInteger)count; 1751 count:(NSUInteger)count;
1752 + (instancetype)dictionaryWithDictionary:(GPBBoolObjectDictionary *)dictionary; 1752 + (instancetype)dictionaryWithDictionary:(GPBBoolObjectDictionary *)dictionary;
1753 + (instancetype)dictionaryWithCapacity:(NSUInteger)numItems; 1753 + (instancetype)dictionaryWithCapacity:(NSUInteger)numItems;
1754 1754
1755 - (instancetype)initWithObjects:(const id GPB_UNSAFE_UNRETAINED [])objects 1755 - (instancetype)initWithObjects:(const ObjectType GPB_UNSAFE_UNRETAINED [])objec ts
1756 forKeys:(const BOOL [])keys 1756 forKeys:(const BOOL [])keys
1757 count:(NSUInteger)count NS_DESIGNATED_INITIALIZER; 1757 count:(NSUInteger)count NS_DESIGNATED_INITIALIZER;
1758 - (instancetype)initWithDictionary:(GPBBoolObjectDictionary *)dictionary; 1758 - (instancetype)initWithDictionary:(GPBBoolObjectDictionary *)dictionary;
1759 - (instancetype)initWithCapacity:(NSUInteger)numItems; 1759 - (instancetype)initWithCapacity:(NSUInteger)numItems;
1760 1760
1761 - (id)objectForKey:(BOOL)key; 1761 - (ObjectType)objectForKey:(BOOL)key;
1762 1762
1763 - (void)enumerateKeysAndObjectsUsingBlock: 1763 - (void)enumerateKeysAndObjectsUsingBlock:
1764 (void (^)(BOOL key, id object, BOOL *stop))block; 1764 (void (^)(BOOL key, ObjectType object, BOOL *stop))block;
1765 1765
1766 - (void)addEntriesFromDictionary:(GPBBoolObjectDictionary *)otherDictionary; 1766 - (void)addEntriesFromDictionary:(GPBBoolObjectDictionary *)otherDictionary;
1767 1767
1768 - (void)setObject:(id)object forKey:(BOOL)key; 1768 - (void)setObject:(ObjectType)object forKey:(BOOL)key;
1769 1769
1770 - (void)removeObjectForKey:(BOOL)aKey; 1770 - (void)removeObjectForKey:(BOOL)aKey;
1771 - (void)removeAll; 1771 - (void)removeAll;
1772 1772
1773 @end 1773 @end
1774 1774
1775 #pragma mark - String -> UInt32 1775 #pragma mark - String -> UInt32
1776 1776
1777 @interface GPBStringUInt32Dictionary : NSObject <NSCopying> 1777 @interface GPBStringUInt32Dictionary : NSObject <NSCopying>
1778 1778
(...skipping 310 matching lines...) Expand 10 before | Expand all | Expand 10 after
2089 2089
2090 //%PDDM-DEFINE DECLARE_DICTIONARIES() 2090 //%PDDM-DEFINE DECLARE_DICTIONARIES()
2091 //%DICTIONARY_INTERFACES_FOR_POD_KEY(UInt32, uint32_t) 2091 //%DICTIONARY_INTERFACES_FOR_POD_KEY(UInt32, uint32_t)
2092 //%DICTIONARY_INTERFACES_FOR_POD_KEY(Int32, int32_t) 2092 //%DICTIONARY_INTERFACES_FOR_POD_KEY(Int32, int32_t)
2093 //%DICTIONARY_INTERFACES_FOR_POD_KEY(UInt64, uint64_t) 2093 //%DICTIONARY_INTERFACES_FOR_POD_KEY(UInt64, uint64_t)
2094 //%DICTIONARY_INTERFACES_FOR_POD_KEY(Int64, int64_t) 2094 //%DICTIONARY_INTERFACES_FOR_POD_KEY(Int64, int64_t)
2095 //%DICTIONARY_INTERFACES_FOR_POD_KEY(Bool, BOOL) 2095 //%DICTIONARY_INTERFACES_FOR_POD_KEY(Bool, BOOL)
2096 //%DICTIONARY_POD_INTERFACES_FOR_KEY(String, NSString, *, OBJECT) 2096 //%DICTIONARY_POD_INTERFACES_FOR_KEY(String, NSString, *, OBJECT)
2097 //%PDDM-DEFINE DICTIONARY_INTERFACES_FOR_POD_KEY(KEY_NAME, KEY_TYPE) 2097 //%PDDM-DEFINE DICTIONARY_INTERFACES_FOR_POD_KEY(KEY_NAME, KEY_TYPE)
2098 //%DICTIONARY_POD_INTERFACES_FOR_KEY(KEY_NAME, KEY_TYPE, , POD) 2098 //%DICTIONARY_POD_INTERFACES_FOR_KEY(KEY_NAME, KEY_TYPE, , POD)
2099 //%DICTIONARY_POD_KEY_TO_OBJECT_INTERFACE(KEY_NAME, KEY_TYPE, Object, id) 2099 //%DICTIONARY_POD_KEY_TO_OBJECT_INTERFACE(KEY_NAME, KEY_TYPE, Object, ObjectType )
2100 //%PDDM-DEFINE DICTIONARY_POD_INTERFACES_FOR_KEY(KEY_NAME, KEY_TYPE, KisP, KHELP ER) 2100 //%PDDM-DEFINE DICTIONARY_POD_INTERFACES_FOR_KEY(KEY_NAME, KEY_TYPE, KisP, KHELP ER)
2101 //%DICTIONARY_KEY_TO_POD_INTERFACE(KEY_NAME, KEY_TYPE, KisP, KHELPER, UInt32, ui nt32_t) 2101 //%DICTIONARY_KEY_TO_POD_INTERFACE(KEY_NAME, KEY_TYPE, KisP, KHELPER, UInt32, ui nt32_t)
2102 //%DICTIONARY_KEY_TO_POD_INTERFACE(KEY_NAME, KEY_TYPE, KisP, KHELPER, Int32, int 32_t) 2102 //%DICTIONARY_KEY_TO_POD_INTERFACE(KEY_NAME, KEY_TYPE, KisP, KHELPER, Int32, int 32_t)
2103 //%DICTIONARY_KEY_TO_POD_INTERFACE(KEY_NAME, KEY_TYPE, KisP, KHELPER, UInt64, ui nt64_t) 2103 //%DICTIONARY_KEY_TO_POD_INTERFACE(KEY_NAME, KEY_TYPE, KisP, KHELPER, UInt64, ui nt64_t)
2104 //%DICTIONARY_KEY_TO_POD_INTERFACE(KEY_NAME, KEY_TYPE, KisP, KHELPER, Int64, int 64_t) 2104 //%DICTIONARY_KEY_TO_POD_INTERFACE(KEY_NAME, KEY_TYPE, KisP, KHELPER, Int64, int 64_t)
2105 //%DICTIONARY_KEY_TO_POD_INTERFACE(KEY_NAME, KEY_TYPE, KisP, KHELPER, Bool, BOOL ) 2105 //%DICTIONARY_KEY_TO_POD_INTERFACE(KEY_NAME, KEY_TYPE, KisP, KHELPER, Bool, BOOL )
2106 //%DICTIONARY_KEY_TO_POD_INTERFACE(KEY_NAME, KEY_TYPE, KisP, KHELPER, Float, flo at) 2106 //%DICTIONARY_KEY_TO_POD_INTERFACE(KEY_NAME, KEY_TYPE, KisP, KHELPER, Float, flo at)
2107 //%DICTIONARY_KEY_TO_POD_INTERFACE(KEY_NAME, KEY_TYPE, KisP, KHELPER, Double, do uble) 2107 //%DICTIONARY_KEY_TO_POD_INTERFACE(KEY_NAME, KEY_TYPE, KisP, KHELPER, Double, do uble)
2108 //%DICTIONARY_KEY_TO_ENUM_INTERFACE(KEY_NAME, KEY_TYPE, KisP, KHELPER, Enum, int 32_t) 2108 //%DICTIONARY_KEY_TO_ENUM_INTERFACE(KEY_NAME, KEY_TYPE, KisP, KHELPER, Enum, int 32_t)
2109 //%PDDM-DEFINE DICTIONARY_KEY_TO_POD_INTERFACE(KEY_NAME, KEY_TYPE, KisP, KHELPER , VALUE_NAME, VALUE_TYPE) 2109 //%PDDM-DEFINE DICTIONARY_KEY_TO_POD_INTERFACE(KEY_NAME, KEY_TYPE, KisP, KHELPER , VALUE_NAME, VALUE_TYPE)
2110 //%DICTIONARY_COMMON_INTERFACE(KEY_NAME, KEY_TYPE, KisP, KHELPER, VALUE_NAME, VA LUE_TYPE, POD, value) 2110 //%DICTIONARY_COMMON_INTERFACE(KEY_NAME, KEY_TYPE, KisP, KHELPER, VALUE_NAME, VA LUE_TYPE, POD, value)
2111 //%PDDM-DEFINE DICTIONARY_POD_KEY_TO_OBJECT_INTERFACE(KEY_NAME, KEY_TYPE, VALUE_ NAME, VALUE_TYPE) 2111 //%PDDM-DEFINE DICTIONARY_POD_KEY_TO_OBJECT_INTERFACE(KEY_NAME, KEY_TYPE, VALUE_ NAME, VALUE_TYPE)
2112 //%DICTIONARY_COMMON_INTERFACE(KEY_NAME, KEY_TYPE, , POD, VALUE_NAME, VALUE_TYPE , OBJECT, object) 2112 //%DICTIONARY_COMMON_INTERFACE(KEY_NAME, KEY_TYPE, , POD, VALUE_NAME, VALUE_TYPE , OBJECT, object)
2113 //%PDDM-DEFINE VALUE_FOR_KEY_POD(KEY_TYPE, VALUE_TYPE) 2113 //%PDDM-DEFINE VALUE_FOR_KEY_POD(KEY_TYPE, VALUE_TYPE)
2114 //%- (BOOL)valueForKey:(KEY_TYPE)key value:(nullable VALUE_TYPE *)value; 2114 //%- (BOOL)valueForKey:(KEY_TYPE)key value:(nullable VALUE_TYPE *)value;
2115 //%PDDM-DEFINE VALUE_FOR_KEY_OBJECT(KEY_TYPE, VALUE_TYPE) 2115 //%PDDM-DEFINE VALUE_FOR_KEY_OBJECT(KEY_TYPE, VALUE_TYPE)
2116 //%- (VALUE_TYPE)objectForKey:(KEY_TYPE)key; 2116 //%- (VALUE_TYPE)objectForKey:(KEY_TYPE)key;
2117 //%PDDM-DEFINE VALUE_FOR_KEY_Enum(KEY_TYPE, VALUE_TYPE) 2117 //%PDDM-DEFINE VALUE_FOR_KEY_Enum(KEY_TYPE, VALUE_TYPE)
2118 //%VALUE_FOR_KEY_POD(KEY_TYPE, VALUE_TYPE) 2118 //%VALUE_FOR_KEY_POD(KEY_TYPE, VALUE_TYPE)
2119 //%PDDM-DEFINE ARRAY_ARG_MODIFIERPOD() 2119 //%PDDM-DEFINE ARRAY_ARG_MODIFIERPOD()
2120 // Nothing 2120 // Nothing
2121 //%PDDM-DEFINE ARRAY_ARG_MODIFIEREnum() 2121 //%PDDM-DEFINE ARRAY_ARG_MODIFIEREnum()
2122 // Nothing 2122 // Nothing
2123 //%PDDM-DEFINE ARRAY_ARG_MODIFIEROBJECT() 2123 //%PDDM-DEFINE ARRAY_ARG_MODIFIEROBJECT()
2124 //%GPB_UNSAFE_UNRETAINED ## 2124 //%GPB_UNSAFE_UNRETAINED ##
2125 //%PDDM-DEFINE DICTIONARY_CLASS_DECLPOD(KEY_NAME, VALUE_NAME, VALUE_TYPE)
2126 //%GPB##KEY_NAME##VALUE_NAME##Dictionary
2127 //%PDDM-DEFINE DICTIONARY_CLASS_DECLEnum(KEY_NAME, VALUE_NAME, VALUE_TYPE)
2128 //%GPB##KEY_NAME##VALUE_NAME##Dictionary
2129 //%PDDM-DEFINE DICTIONARY_CLASS_DECLOBJECT(KEY_NAME, VALUE_NAME, VALUE_TYPE)
2130 //%GPB##KEY_NAME##VALUE_NAME##Dictionary<__covariant VALUE_TYPE>
2125 //%PDDM-DEFINE DICTIONARY_COMMON_INTERFACE(KEY_NAME, KEY_TYPE, KisP, KHELPER, VA LUE_NAME, VALUE_TYPE, VHELPER, VNAME) 2131 //%PDDM-DEFINE DICTIONARY_COMMON_INTERFACE(KEY_NAME, KEY_TYPE, KisP, KHELPER, VA LUE_NAME, VALUE_TYPE, VHELPER, VNAME)
2126 //%#pragma mark - KEY_NAME -> VALUE_NAME 2132 //%#pragma mark - KEY_NAME -> VALUE_NAME
2127 //% 2133 //%
2128 //%@interface GPB##KEY_NAME##VALUE_NAME##Dictionary : NSObject <NSCopying> 2134 //%@interface DICTIONARY_CLASS_DECL##VHELPER(KEY_NAME, VALUE_NAME, VALUE_TYPE) : NSObject <NSCopying>
2129 //% 2135 //%
2130 //%@property(nonatomic, readonly) NSUInteger count; 2136 //%@property(nonatomic, readonly) NSUInteger count;
2131 //% 2137 //%
2132 //%+ (instancetype)dictionary; 2138 //%+ (instancetype)dictionary;
2133 //%+ (instancetype)dictionaryWith##VNAME$u##:(VALUE_TYPE)##VNAME 2139 //%+ (instancetype)dictionaryWith##VNAME$u##:(VALUE_TYPE)##VNAME
2134 //% ##VNAME$S## forKey:(KEY_TYPE##KisP$S##KisP)key; 2140 //% ##VNAME$S## forKey:(KEY_TYPE##KisP$S##KisP)key;
2135 //%+ (instancetype)dictionaryWith##VNAME$u##s:(const VALUE_TYPE ARRAY_ARG_MODIFI ER##VHELPER()[])##VNAME##s 2141 //%+ (instancetype)dictionaryWith##VNAME$u##s:(const VALUE_TYPE ARRAY_ARG_MODIFI ER##VHELPER()[])##VNAME##s
2136 //% ##VNAME$S## forKeys:(const KEY_TYPE##KisP$S##KisP ARRA Y_ARG_MODIFIER##KHELPER()[])keys 2142 //% ##VNAME$S## forKeys:(const KEY_TYPE##KisP$S##KisP ARRA Y_ARG_MODIFIER##KHELPER()[])keys
2137 //% ##VNAME$S## count:(NSUInteger)count; 2143 //% ##VNAME$S## count:(NSUInteger)count;
2138 //%+ (instancetype)dictionaryWithDictionary:(GPB##KEY_NAME##VALUE_NAME##Dictiona ry *)dictionary; 2144 //%+ (instancetype)dictionaryWithDictionary:(GPB##KEY_NAME##VALUE_NAME##Dictiona ry *)dictionary;
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after
2228 //%PDDM-DEFINE DICTIONARY_EXTRA_MUTABLE_METHODS_OBJECT(KEY_NAME, KEY_TYPE, KisP, VALUE_NAME, VALUE_TYPE) 2234 //%PDDM-DEFINE DICTIONARY_EXTRA_MUTABLE_METHODS_OBJECT(KEY_NAME, KEY_TYPE, KisP, VALUE_NAME, VALUE_TYPE)
2229 // Empty 2235 // Empty
2230 //%PDDM-DEFINE DICTIONARY_EXTRA_MUTABLE_METHODS_Enum(KEY_NAME, KEY_TYPE, KisP, V ALUE_NAME, VALUE_TYPE) 2236 //%PDDM-DEFINE DICTIONARY_EXTRA_MUTABLE_METHODS_Enum(KEY_NAME, KEY_TYPE, KisP, V ALUE_NAME, VALUE_TYPE)
2231 //% 2237 //%
2232 //%// This method bypass the validationFunc to provide setting of values that we re not 2238 //%// This method bypass the validationFunc to provide setting of values that we re not
2233 //%// known at the time the binary was compiled. 2239 //%// known at the time the binary was compiled.
2234 //%- (void)setRawValue:(VALUE_TYPE)rawValue forKey:(KEY_TYPE##KisP$S##KisP)key; 2240 //%- (void)setRawValue:(VALUE_TYPE)rawValue forKey:(KEY_TYPE##KisP$S##KisP)key;
2235 //% 2241 //%
2236 //%// No validation applies to these methods. 2242 //%// No validation applies to these methods.
2237 //% 2243 //%
OLDNEW
« no previous file with comments | « third_party/protobuf/objectivec/GPBDescriptor_PackagePrivate.h ('k') | third_party/protobuf/objectivec/GPBDictionary.m » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698