#import <GPBDictionary.h>
Class used for map fields of <uint64_t, ObjectType> values. This performs better than boxing into NSNumbers in NSDictionaries.
- Note
- This class is not meant to be subclassed.
Definition at line 2726 of file bloaty/third_party/protobuf/objectivec/GPBDictionary.h.
◆ addEntriesFromDictionary: [1/2]
Adds the keys and values from another dictionary.
- Parameters
-
otherDictionary | Dictionary containing entries to be added to this dictionary. |
◆ addEntriesFromDictionary: [2/2]
Adds the keys and values from another dictionary.
- Parameters
-
otherDictionary | Dictionary containing entries to be added to this dictionary. |
◆ deepCopyWithZone: [1/2]
- (instancetype) deepCopyWithZone: |
|
((ns_returns_retained)) |
__attribute__ |
|
|
implementation |
◆ deepCopyWithZone: [2/2]
- (instancetype) deepCopyWithZone: |
|
((ns_returns_retained)) |
__attribute__ |
|
|
implementation |
◆ enumerateKeysAndObjectsUsingBlock: [1/2]
Enumerates the keys and values on this dictionary with the given block.
- Parameters
-
block | The block to enumerate with. key: The key for the current entry. object: The value for the current entry stop: A pointer to a boolean that when set stops the enumeration. |
◆ enumerateKeysAndObjectsUsingBlock: [2/2]
Enumerates the keys and values on this dictionary with the given block.
- Parameters
-
block | The block to enumerate with. key: The key for the current entry. object: The value for the current entry stop: A pointer to a boolean that when set stops the enumeration. |
◆ initWithCapacity: [1/2]
- (instancetype) initWithCapacity: |
|
(NSUInteger) |
numItems |
|
Initializes this dictionary with the requested capacity.
- Parameters
-
numItems | Number of items needed for this dictionary. |
- Returns
- A newly initialized dictionary with the requested capacity.
◆ initWithCapacity: [2/2]
- (instancetype) initWithCapacity: |
|
(NSUInteger) |
numItems |
|
Initializes this dictionary with the requested capacity.
- Parameters
-
numItems | Number of items needed for this dictionary. |
- Returns
- A newly initialized dictionary with the requested capacity.
◆ initWithDictionary: [1/2]
Initializes this dictionary, copying the entries from the given dictionary.
- Parameters
-
dictionary | Dictionary containing the entries to add to this dictionary. |
- Returns
- A newly initialized dictionary with the entries of the given dictionary.
◆ initWithDictionary: [2/2]
Initializes this dictionary, copying the entries from the given dictionary.
- Parameters
-
dictionary | Dictionary containing the entries to add to this dictionary. |
- Returns
- A newly initialized dictionary with the entries of the given dictionary.
◆ initWithObjects:forKeys:count: [1/2]
Initializes this dictionary, copying the given values and keys.
- Parameters
-
objects | 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. |
- Returns
- A newly initialized dictionary with a copy of the values and keys.
◆ initWithObjects:forKeys:count: [2/2]
Initializes this dictionary, copying the given values and keys.
- Parameters
-
objects | 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. |
- Returns
- A newly initialized dictionary with a copy of the values and keys.
◆ isInitialized [1/2]
◆ isInitialized [2/2]
◆ objectForKey: [1/2]
- (ObjectType) objectForKey: |
|
(uint64_t) |
key |
|
Fetches the object stored under the given key.
- Parameters
-
key | Key under which the value is stored, if present. |
- Returns
- The object if found, nil otherwise.
◆ objectForKey: [2/2]
- (ObjectType) objectForKey: |
|
(uint64_t) |
key |
|
Fetches the object stored under the given key.
- Parameters
-
key | Key under which the value is stored, if present. |
- Returns
- The object if found, nil otherwise.
◆ removeAll [1/2]
Removes all entries in this dictionary.
◆ removeAll [2/2]
Removes all entries in this dictionary.
◆ removeObjectForKey: [1/2]
- (void) removeObjectForKey: |
|
(uint64_t) |
aKey |
|
Removes the entry for the given key.
- Parameters
-
aKey | Key to be removed from this dictionary. |
◆ removeObjectForKey: [2/2]
- (void) removeObjectForKey: |
|
(uint64_t) |
aKey |
|
Removes the entry for the given key.
- Parameters
-
aKey | Key to be removed from this dictionary. |
◆ setObject:forKey: [1/2]
- (void) setObject: |
|
(ObjectType) |
object |
forKey: |
|
(uint64_t) |
key |
|
|
| |
Sets the value for the given key.
- Parameters
-
object | The value to set. |
key | The key under which to store the value. |
◆ setObject:forKey: [2/2]
- (void) setObject: |
|
(ObjectType) |
object |
forKey: |
|
(uint64_t) |
key |
|
|
| |
Sets the value for the given key.
- Parameters
-
object | The value to set. |
key | The key under which to store the value. |
◆ __pad0__
◆ _autocreator
◆ count
- (readonly NSUInteger) count |
|
protected |
The documentation for this class was generated from the following file: