Instance Methods | Protected Attributes | List of all members
GPBInt32ObjectDictionary Class Reference

#import <GPBDictionary.h>

Inheritance diagram for GPBInt32ObjectDictionary:
Inheritance graph
[legend]

Instance Methods

(void) - addEntriesFromDictionary:
 
(void) - addEntriesFromDictionary:
 
(instancetype) - deepCopyWithZone: [implementation]
 
(instancetype) - deepCopyWithZone: [implementation]
 
(void) - enumerateKeysAndObjectsUsingBlock:
 
(void) - enumerateKeysAndObjectsUsingBlock:
 
(instancetype) - initWithCapacity:
 
(instancetype) - initWithCapacity:
 
(instancetype) - initWithDictionary:
 
(instancetype) - initWithDictionary:
 
(instancetype) - initWithObjects:forKeys:count:
 
(instancetype) - initWithObjects:forKeys:count:
 
(BOOL- isInitialized [implementation]
 
(BOOL- isInitialized [implementation]
 
(ObjectType) - objectForKey:
 
(ObjectType) - objectForKey:
 
(void) - removeAll
 
(void) - removeAll
 
(void) - removeObjectForKey:
 
(void) - removeObjectForKey:
 
(void) - setObject:forKey:
 
(void) - setObject:forKey:
 
- Instance Methods inherited from <GPBDictionaryInternalsProtocol>
(size_t) - computeSerializedSizeAsField:
 
(size_t) - computeSerializedSizeAsField:
 
(void) - enumerateForTextFormat:
 
(void) - enumerateForTextFormat:
 
(void) - setGPBGenericValue:forGPBGenericValueKey:
 
(void) - setGPBGenericValue:forGPBGenericValueKey:
 
(void) - writeToCodedOutputStream:asField:
 
(void) - writeToCodedOutputStream:asField:
 

Protected Attributes

 __pad0__: NSObject <NSCopying>@property(nonatomic
 
package GPB_UNSAFE_UNRETAINED GPBMessage_autocreator
 
readonly NSUInteger count
 

Detailed Description

Class used for map fields of <int32_t, ObjectType> values. This performs better than boxing into NSNumbers in NSDictionaries.

Note
This class is not meant to be subclassed.

Definition at line 1805 of file bloaty/third_party/protobuf/objectivec/GPBDictionary.h.

Method Documentation

◆ addEntriesFromDictionary: [1/2]

- (void) addEntriesFromDictionary: (GPBInt32ObjectDictionary *)  otherDictionary

Adds the keys and values from another dictionary.

Parameters
otherDictionaryDictionary containing entries to be added to this dictionary.

◆ addEntriesFromDictionary: [2/2]

- (void) addEntriesFromDictionary: (GPBInt32ObjectDictionary *)  otherDictionary

Adds the keys and values from another dictionary.

Parameters
otherDictionaryDictionary 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]

- (void) enumerateKeysAndObjectsUsingBlock: (void(NS_NOESCAPE ^ block)(int32_t key, ObjectType object, BOOL *stop)) 

Enumerates the keys and values on this dictionary with the given block.

Parameters
blockThe 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]

- (void) enumerateKeysAndObjectsUsingBlock: (void(NS_NOESCAPE ^ block)(int32_t key, ObjectType object, BOOL *stop)) 

Enumerates the keys and values on this dictionary with the given block.

Parameters
blockThe 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
numItemsNumber 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
numItemsNumber of items needed for this dictionary.
Returns
A newly initialized dictionary with the requested capacity.

◆ initWithDictionary: [1/2]

- (instancetype) initWithDictionary: (GPBInt32ObjectDictionary *)  dictionary

Initializes this dictionary, copying the entries from the given dictionary.

Parameters
dictionaryDictionary containing the entries to add to this dictionary.
Returns
A newly initialized dictionary with the entries of the given dictionary.

◆ initWithDictionary: [2/2]

- (instancetype) initWithDictionary: (GPBInt32ObjectDictionary *)  dictionary

Initializes this dictionary, copying the entries from the given dictionary.

Parameters
dictionaryDictionary 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]

- (instancetype) initWithObjects: (const ObjectType __nonnull GPB_UNSAFE_UNRETAINED objects[__nullable]
forKeys: (const int32_t keys[__nullable]
count: (NSUInteger)  NS_DESIGNATED_INITIALIZER 

Initializes this dictionary, copying the given values and keys.

Parameters
objectsThe values to be placed in this dictionary.
keysThe keys under which to store the values.
countThe 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]

- (instancetype) initWithObjects: (const ObjectType __nonnull GPB_UNSAFE_UNRETAINED objects[__nullable]
forKeys: (const int32_t keys[__nullable]
count: (NSUInteger)  NS_DESIGNATED_INITIALIZER 

Initializes this dictionary, copying the given values and keys.

Parameters
objectsThe values to be placed in this dictionary.
keysThe keys under which to store the values.
countThe number of elements to copy into the dictionary.
Returns
A newly initialized dictionary with a copy of the values and keys.

◆ isInitialized [1/2]

- (BOOL) isInitialized
implementation

◆ isInitialized [2/2]

- (BOOL) isInitialized
implementation

◆ objectForKey: [1/2]

- (ObjectType) objectForKey: (int32_t key

Fetches the object stored under the given key.

Parameters
keyKey under which the value is stored, if present.
Returns
The object if found, nil otherwise.

◆ objectForKey: [2/2]

- (ObjectType) objectForKey: (int32_t key

Fetches the object stored under the given key.

Parameters
keyKey under which the value is stored, if present.
Returns
The object if found, nil otherwise.

◆ removeAll [1/2]

- (void) removeAll

Removes all entries in this dictionary.

◆ removeAll [2/2]

- (void) removeAll

Removes all entries in this dictionary.

◆ removeObjectForKey: [1/2]

- (void) removeObjectForKey: (int32_t aKey

Removes the entry for the given key.

Parameters
aKeyKey to be removed from this dictionary.

◆ removeObjectForKey: [2/2]

- (void) removeObjectForKey: (int32_t aKey

Removes the entry for the given key.

Parameters
aKeyKey to be removed from this dictionary.

◆ setObject:forKey: [1/2]

- (void) setObject: (ObjectType)  object
forKey: (int32_t key 

Sets the value for the given key.

Parameters
objectThe value to set.
keyThe key under which to store the value.

◆ setObject:forKey: [2/2]

- (void) setObject: (ObjectType)  object
forKey: (int32_t key 

Sets the value for the given key.

Parameters
objectThe value to set.
keyThe key under which to store the value.

Member Data Documentation

◆ __pad0__

- __pad0__
protected

◆ _autocreator

- (package GPB_UNSAFE_UNRETAINED GPBMessage *) _autocreator
protected

◆ count

- (readonly NSUInteger) count
protected

The documentation for this class was generated from the following file:


grpc
Author(s):
autogenerated on Fri May 16 2025 03:01:45