#import <GPBDictionary.h>
Class used for map fields of <BOOL, double> values. This performs better than boxing into NSNumbers in NSDictionaries.
- Note
- This class is not meant to be subclassed.
Definition at line 4311 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. |
◆ enumerateKeysAndDoublesUsingBlock: [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. value: The value for the current entry stop: A pointer to a boolean that when set stops the enumeration. |
◆ enumerateKeysAndDoublesUsingBlock: [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. value: The value for the current entry stop: A pointer to a boolean that when set stops the enumeration. |
◆ getDouble:forKey: [1/2]
- (BOOL) getDouble: |
|
(nullable double *) |
value |
forKey: |
|
(BOOL) |
key |
|
|
| |
Gets the value for the given key.
- Parameters
-
value | Pointer into which the value will be set, if found. |
key | Key under which the value is stored, if present. |
- Returns
- YES if the key was found and the value was copied, NO otherwise.
◆ getDouble:forKey: [2/2]
- (BOOL) getDouble: |
|
(nullable double *) |
value |
forKey: |
|
(BOOL) |
key |
|
|
| |
Gets the value for the given key.
- Parameters
-
value | Pointer into which the value will be set, if found. |
key | Key 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
-
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.
◆ initWithDoubles:forKeys:count: [1/2]
- (instancetype) initWithDoubles: |
|
(const double) |
values[__nullable] |
forKeys: |
|
(const BOOL) |
keys[__nullable] |
count: |
|
(NSUInteger) |
NS_DESIGNATED_INITIALIZER |
|
|
| |
Initializes this dictionary, copying the given values and keys.
- Parameters
-
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. |
- Returns
- A newly initialized dictionary with a copy of the values and keys.
◆ initWithDoubles:forKeys:count: [2/2]
- (instancetype) initWithDoubles: |
|
(const double) |
values[__nullable] |
forKeys: |
|
(const BOOL) |
keys[__nullable] |
count: |
|
(NSUInteger) |
NS_DESIGNATED_INITIALIZER |
|
|
| |
Initializes this dictionary, copying the given values and keys.
- Parameters
-
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. |
- Returns
- A newly initialized dictionary with a copy of the values and keys.
◆ removeAll [1/2]
Removes all entries in this dictionary.
◆ removeAll [2/2]
Removes all entries in this dictionary.
◆ removeDoubleForKey: [1/2]
- (void) removeDoubleForKey: |
|
(BOOL) |
aKey |
|
Removes the entry for the given key.
- Parameters
-
aKey | Key to be removed from this dictionary. |
◆ removeDoubleForKey: [2/2]
- (void) removeDoubleForKey: |
|
(BOOL) |
aKey |
|
Removes the entry for the given key.
- Parameters
-
aKey | Key to be removed from this dictionary. |
◆ setDouble:forKey: [1/2]
- (void) setDouble: |
|
(double) |
value |
forKey: |
|
(BOOL) |
key |
|
|
| |
Sets the value for the given key.
- Parameters
-
value | The value to set. |
key | The key under which to store the value. |
◆ setDouble:forKey: [2/2]
- (void) setDouble: |
|
(double) |
value |
forKey: |
|
(BOOL) |
key |
|
|
| |
Sets the value for the given key.
- Parameters
-
value | The value to set. |
key | The key under which to store the value. |
◆ _autocreator
◆ count
The documentation for this class was generated from the following file: