#import <GPBDictionary.h>

Instance Methods | |
| (void) | - addEntriesFromDictionary: |
| (void) | - enumerateKeysAndInt32sUsingBlock: |
| (BOOL) | - getInt32:forKey: |
| (instancetype) | - initWithCapacity: |
| (instancetype) | - initWithDictionary: |
| (instancetype) | - initWithInt32s:forKeys:count: |
| (void) | - removeAll |
| (void) | - removeInt32ForKey: |
| (void) | - setInt32:forKey: |
Instance Methods inherited from <GPBDictionaryInternalsProtocol> | |
| (size_t) | - computeSerializedSizeAsField: |
| (void) | - enumerateForTextFormat: |
| (void) | - setGPBGenericValue:forGPBGenericValueKey: |
| (void) | - writeToCodedOutputStream:asField: |
Protected Attributes | |
| package GPB_UNSAFE_UNRETAINED GPBMessage * | _autocreator |
Properties | |
| NSUInteger | count |
Class used for map fields of <NSString, int32_t> values. This performs better than boxing into NSNumbers in NSDictionaries.
Definition at line 4757 of file GPBDictionary.h.
| - (void) addEntriesFromDictionary: | (GPBStringInt32Dictionary *) | otherDictionary |
Adds the keys and values from another dictionary.
| otherDictionary | Dictionary containing entries to be added to this dictionary. |
| - (void) enumerateKeysAndInt32sUsingBlock: | (void(NS_NOESCAPE ^ block)(NSString *key, int32_t value, BOOL *stop)) |
Enumerates the keys and values on this dictionary with the given block.
| block | The block to enumerate with. key: The key for the current entry. value: The value for the current entry stop: A pointer to a boolean that when set stops the enumeration. |
| - (BOOL) getInt32: | (nullable int32_t *) | value | |
| forKey: | (NSString *) | key | |
Gets the value for the given key.
| value | Pointer into which the value will be set, if found. |
| key | Key under which the value is stored, if present. |
| - (instancetype) initWithCapacity: | (NSUInteger) | numItems |
Initializes this dictionary with the requested capacity.
| numItems | Number of items needed for this dictionary. |
| - (instancetype) initWithDictionary: | (GPBStringInt32Dictionary *) | dictionary |
Initializes this dictionary, copying the entries from the given dictionary.
| dictionary | Dictionary containing the entries to add to this dictionary. |
| - (instancetype) initWithInt32s: | (const int32_t) | values[__nullable] | |
| forKeys: | (const NSString *__nonnull GPB_UNSAFE_UNRETAINED) | keys[__nullable] | |
| count: | (NSUInteger) | NS_DESIGNATED_INITIALIZER | |
Initializes this dictionary, copying the given values and keys.
| values | The values to be placed in this dictionary. |
| keys | The keys under which to store the values. |
| count | The number of elements to copy into the dictionary. |
| - (void) removeAll |
Removes all entries in this dictionary.
| - (void) removeInt32ForKey: | (NSString *) | aKey |
Removes the entry for the given key.
| aKey | Key to be removed from this dictionary. |
| - (void) setInt32: | (int32_t) | value | |
| forKey: | (NSString *) | key | |
Sets the value for the given key.
| value | The value to set. |
| key | The key under which to store the value. |
|
protected |
Definition at line 409 of file GPBDictionary_PackagePrivate.h.
|
readnonatomicassign |
Number of entries stored in this dictionary.
Definition at line 4760 of file GPBDictionary.h.