Instance Methods | Protected Attributes | Properties | List of all members
GPBInt64UInt32Dictionary Class Reference

#import <GPBDictionary.h>

Inheritance diagram for GPBInt64UInt32Dictionary:
Inheritance graph
[legend]

Instance Methods

(void) - addEntriesFromDictionary:
 
(void) - addEntriesFromDictionary:
 
(void) - enumerateKeysAndUInt32sUsingBlock:
 
(void) - enumerateKeysAndUInt32sUsingBlock:
 
(BOOL- getUInt32:forKey:
 
(BOOL- getUInt32:forKey:
 
(instancetype) - initWithCapacity:
 
(instancetype) - initWithCapacity:
 
(instancetype) - initWithDictionary:
 
(instancetype) - initWithDictionary:
 
(instancetype) - initWithUInt32s:forKeys:count:
 
(instancetype) - initWithUInt32s:forKeys:count:
 
(void) - removeAll
 
(void) - removeAll
 
(void) - removeUInt32ForKey:
 
(void) - removeUInt32ForKey:
 
(void) - setUInt32:forKey:
 
(void) - setUInt32: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

package GPB_UNSAFE_UNRETAINED GPBMessage_autocreator
 

Properties

NSUInteger count
 

Detailed Description

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

Note
This class is not meant to be subclassed.

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

Method Documentation

◆ addEntriesFromDictionary: [1/2]

- (void) addEntriesFromDictionary: (GPBInt64UInt32Dictionary *)  otherDictionary

Adds the keys and values from another dictionary.

Parameters
otherDictionaryDictionary containing entries to be added to this dictionary.

◆ addEntriesFromDictionary: [2/2]

- (void) addEntriesFromDictionary: (GPBInt64UInt32Dictionary *)  otherDictionary

Adds the keys and values from another dictionary.

Parameters
otherDictionaryDictionary containing entries to be added to this dictionary.

◆ enumerateKeysAndUInt32sUsingBlock: [1/2]

- (void) enumerateKeysAndUInt32sUsingBlock: (void(NS_NOESCAPE ^ block)(int64_t key, uint32_t value, 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. value: The value for the current entry stop: A pointer to a boolean that when set stops the enumeration.

◆ enumerateKeysAndUInt32sUsingBlock: [2/2]

- (void) enumerateKeysAndUInt32sUsingBlock: (void(NS_NOESCAPE ^ block)(int64_t key, uint32_t value, 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. value: The value for the current entry stop: A pointer to a boolean that when set stops the enumeration.

◆ getUInt32:forKey: [1/2]

- (BOOL) getUInt32: (nullable uint32_t *)  value
forKey: (int64_t key 

Gets the value for the given key.

Parameters
valuePointer into which the value will be set, if found.
keyKey under which the value is stored, if present.
Returns
YES if the key was found and the value was copied, NO otherwise.

◆ getUInt32:forKey: [2/2]

- (BOOL) getUInt32: (nullable uint32_t *)  value
forKey: (int64_t key 

Gets the value for the given key.

Parameters
valuePointer into which the value will be set, if found.
keyKey under which the value is stored, if present.
Returns
YES if the key was found and the value was copied, NO otherwise.

◆ 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: (GPBInt64UInt32Dictionary *)  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: (GPBInt64UInt32Dictionary *)  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.

◆ initWithUInt32s:forKeys:count: [1/2]

- (instancetype) initWithUInt32s: (const uint32_t values[__nullable]
forKeys: (const int64_t keys[__nullable]
count: (NSUInteger)  NS_DESIGNATED_INITIALIZER 

Initializes this dictionary, copying the given values and keys.

Parameters
valuesThe 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.

◆ initWithUInt32s:forKeys:count: [2/2]

- (instancetype) initWithUInt32s: (const uint32_t values[__nullable]
forKeys: (const int64_t keys[__nullable]
count: (NSUInteger)  NS_DESIGNATED_INITIALIZER 

Initializes this dictionary, copying the given values and keys.

Parameters
valuesThe 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.

◆ removeAll [1/2]

- (void) removeAll

Removes all entries in this dictionary.

◆ removeAll [2/2]

- (void) removeAll

Removes all entries in this dictionary.

◆ removeUInt32ForKey: [1/2]

- (void) removeUInt32ForKey: (int64_t aKey

Removes the entry for the given key.

Parameters
aKeyKey to be removed from this dictionary.

◆ removeUInt32ForKey: [2/2]

- (void) removeUInt32ForKey: (int64_t aKey

Removes the entry for the given key.

Parameters
aKeyKey to be removed from this dictionary.

◆ setUInt32:forKey: [1/2]

- (void) setUInt32: (uint32_t value
forKey: (int64_t key 

Sets the value for the given key.

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

◆ setUInt32:forKey: [2/2]

- (void) setUInt32: (uint32_t value
forKey: (int64_t key 

Sets the value for the given key.

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

Member Data Documentation

◆ _autocreator

- (package GPB_UNSAFE_UNRETAINED GPBMessage *) _autocreator
protected

Property Documentation

◆ count

- (NSUInteger) count
readnonatomicassign

Number of entries stored in this dictionary.

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


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


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