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

#import <GPBArray.h>

Inheritance diagram for GPBBoolArray:
Inheritance graph
[legend]

Instance Methods

(void) - addValue:
 
(void) - addValue:
 
(void) - addValues:count:
 
(void) - addValues:count:
 
(void) - addValuesFromArray:
 
(void) - addValuesFromArray:
 
(void) - enumerateValuesWithBlock:
 
(void) - enumerateValuesWithBlock:
 
(void) - enumerateValuesWithOptions:usingBlock:
 
(void) - enumerateValuesWithOptions:usingBlock:
 
(void) - exchangeValueAtIndex:withValueAtIndex:
 
(void) - exchangeValueAtIndex:withValueAtIndex:
 
(instancetype) - initWithCapacity:
 
(instancetype) - initWithCapacity:
 
(instancetype) - initWithValueArray:
 
(instancetype) - initWithValueArray:
 
(instancetype) - initWithValues:count:
 
(instancetype) - initWithValues:count:
 
(void) - insertValue:atIndex:
 
(void) - insertValue:atIndex:
 
(instancetype) - NS_DESIGNATED_INITIALIZER
 
(instancetype) - NS_DESIGNATED_INITIALIZER
 
(void) - removeAll
 
(void) - removeAll
 
(void) - removeValueAtIndex:
 
(void) - removeValueAtIndex:
 
(void) - replaceValueAtIndex:withValue:
 
(void) - replaceValueAtIndex:withValue:
 
(BOOL- valueAtIndex:
 
(BOOL- valueAtIndex:
 

Class Methods

(instancetype) + array
 
(instancetype) + array
 
(instancetype) + arrayWithCapacity:
 
(instancetype) + arrayWithCapacity:
 
(instancetype) + arrayWithValue:
 
(instancetype) + arrayWithValue:
 
(instancetype) + arrayWithValueArray:
 
(instancetype) + arrayWithValueArray:
 

Protected Attributes

package GPB_UNSAFE_UNRETAINED GPBMessage_autocreator
 

Properties

NSUInteger count
 

Detailed Description

Class used for repeated fields of BOOL values. This performs better than boxing into NSNumbers in NSArrays.

Note
This class is not meant to be subclassed.

Definition at line 1080 of file bloaty/third_party/protobuf/objectivec/GPBArray.h.

Method Documentation

◆ addValue: [1/2]

- (void) addValue: (BOOL value

Adds a value to this array.

Parameters
valueThe value to add to this array.

◆ addValue: [2/2]

- (void) addValue: (BOOL value

Adds a value to this array.

Parameters
valueThe value to add to this array.

◆ addValues:count: [1/2]

- (void) addValues: (const BOOL values[__nullable]
count: (NSUInteger)  count 

Adds values to this array.

Parameters
valuesThe values to add to this array.
countThe number of elements to add.

◆ addValues:count: [2/2]

- (void) addValues: (const BOOL values[__nullable]
count: (NSUInteger)  count 

Adds values to this array.

Parameters
valuesThe values to add to this array.
countThe number of elements to add.

◆ addValuesFromArray: [1/2]

- (void) addValuesFromArray: (GPBBoolArray *)  array

Adds the values from the given array to this array.

Parameters
arrayThe array containing the elements to add to this array.

◆ addValuesFromArray: [2/2]

- (void) addValuesFromArray: (GPBBoolArray *)  array

Adds the values from the given array to this array.

Parameters
arrayThe array containing the elements to add to this array.

◆ array [1/2]

+ (instancetype) array
Returns
A newly instanced and empty GPBBoolArray.

◆ array [2/2]

+ (instancetype) array
Returns
A newly instanced and empty GPBBoolArray.

◆ arrayWithCapacity: [1/2]

+ (instancetype) arrayWithCapacity: (NSUInteger)  count

Creates and initializes a GPBBoolArray with the given capacity.

Parameters
countThe capacity needed for the array.
Returns
A newly instanced GPBBoolArray with a capacity of count.

◆ arrayWithCapacity: [2/2]

+ (instancetype) arrayWithCapacity: (NSUInteger)  count

Creates and initializes a GPBBoolArray with the given capacity.

Parameters
countThe capacity needed for the array.
Returns
A newly instanced GPBBoolArray with a capacity of count.

◆ arrayWithValue: [1/2]

+ (instancetype) arrayWithValue: (BOOL value

Creates and initializes a GPBBoolArray with the single element given.

Parameters
valueThe value to be placed in the array.
Returns
A newly instanced GPBBoolArray with value in it.

◆ arrayWithValue: [2/2]

+ (instancetype) arrayWithValue: (BOOL value

Creates and initializes a GPBBoolArray with the single element given.

Parameters
valueThe value to be placed in the array.
Returns
A newly instanced GPBBoolArray with value in it.

◆ arrayWithValueArray: [1/2]

+ (instancetype) arrayWithValueArray: (GPBBoolArray *)  array

Creates and initializes a GPBBoolArray with the contents of the given array.

Parameters
arrayArray with the contents to be put into the new array.
Returns
A newly instanced GPBBoolArray with the contents of array.

◆ arrayWithValueArray: [2/2]

+ (instancetype) arrayWithValueArray: (GPBBoolArray *)  array

Creates and initializes a GPBBoolArray with the contents of the given array.

Parameters
arrayArray with the contents to be put into the new array.
Returns
A newly instanced GPBBoolArray with the contents of array.

◆ enumerateValuesWithBlock: [1/2]

- (void) enumerateValuesWithBlock: (void(NS_NOESCAPE ^ block)(BOOL value, NSUInteger idx, BOOL *stop)) 

Enumerates the values on this array with the given block.

Parameters
blockThe block to enumerate with. value: The current value being enumerated. idx: The index of the current value. stop: A pointer to a boolean that when set stops the enumeration.

◆ enumerateValuesWithBlock: [2/2]

- (void) enumerateValuesWithBlock: (void(NS_NOESCAPE ^ block)(BOOL value, NSUInteger idx, BOOL *stop)) 

Enumerates the values on this array with the given block.

Parameters
blockThe block to enumerate with. value: The current value being enumerated. idx: The index of the current value. stop: A pointer to a boolean that when set stops the enumeration.

◆ enumerateValuesWithOptions:usingBlock: [1/2]

- (void) enumerateValuesWithOptions: (NSEnumerationOptions)  opts
usingBlock: (void(NS_NOESCAPE ^ block)(BOOL value, NSUInteger idx, BOOL *stop))   

Enumerates the values on this array with the given block.

Parameters
optsOptions to control the enumeration.
blockThe block to enumerate with. value: The current value being enumerated. idx: The index of the current value. stop: A pointer to a boolean that when set stops the enumeration.

◆ enumerateValuesWithOptions:usingBlock: [2/2]

- (void) enumerateValuesWithOptions: (NSEnumerationOptions)  opts
usingBlock: (void(NS_NOESCAPE ^ block)(BOOL value, NSUInteger idx, BOOL *stop))   

Enumerates the values on this array with the given block.

Parameters
optsOptions to control the enumeration.
blockThe block to enumerate with. value: The current value being enumerated. idx: The index of the current value. stop: A pointer to a boolean that when set stops the enumeration.

◆ exchangeValueAtIndex:withValueAtIndex: [1/2]

- (void) exchangeValueAtIndex: (NSUInteger)  idx1
withValueAtIndex: (NSUInteger)  idx2 

Exchanges the values between the given indexes.

Parameters
idx1The index of the first element to exchange.
idx2The index of the second element to exchange.

◆ exchangeValueAtIndex:withValueAtIndex: [2/2]

- (void) exchangeValueAtIndex: (NSUInteger)  idx1
withValueAtIndex: (NSUInteger)  idx2 

Exchanges the values between the given indexes.

Parameters
idx1The index of the first element to exchange.
idx2The index of the second element to exchange.

◆ initWithCapacity: [1/2]

- (instancetype) initWithCapacity: (NSUInteger)  count

Initializes the array with the given capacity.

Parameters
countThe capacity needed for the array.
Returns
A newly initialized GPBBoolArray with a capacity of count.

◆ initWithCapacity: [2/2]

- (instancetype) initWithCapacity: (NSUInteger)  count

Initializes the array with the given capacity.

Parameters
countThe capacity needed for the array.
Returns
A newly initialized GPBBoolArray with a capacity of count.

◆ initWithValueArray: [1/2]

- (instancetype) initWithValueArray: (GPBBoolArray *)  array

Initializes the array, copying the given values.

Parameters
arrayAn array with the values to put inside this array.
Returns
A newly initialized GPBBoolArray with a copy of the values.

◆ initWithValueArray: [2/2]

- (instancetype) initWithValueArray: (GPBBoolArray *)  array

Initializes the array, copying the given values.

Parameters
arrayAn array with the values to put inside this array.
Returns
A newly initialized GPBBoolArray with a copy of the values.

◆ initWithValues:count: [1/2]

- (instancetype) initWithValues: (const BOOL values[__nullable]
count: (NSUInteger)  count 

Initializes the array, copying the given values.

Parameters
valuesAn array with the values to put inside this array.
countThe number of elements to copy into the array.
Returns
A newly initialized GPBBoolArray with a copy of the values.

◆ initWithValues:count: [2/2]

- (instancetype) initWithValues: (const BOOL values[__nullable]
count: (NSUInteger)  count 

Initializes the array, copying the given values.

Parameters
valuesAn array with the values to put inside this array.
countThe number of elements to copy into the array.
Returns
A newly initialized GPBBoolArray with a copy of the values.

◆ insertValue:atIndex: [1/2]

- (void) insertValue: (BOOL value
atIndex: (NSUInteger)  index 

Inserts a value into the given position.

Parameters
valueThe value to add to this array.
indexThe index into which to insert the value.

◆ insertValue:atIndex: [2/2]

- (void) insertValue: (BOOL value
atIndex: (NSUInteger)  index 

Inserts a value into the given position.

Parameters
valueThe value to add to this array.
indexThe index into which to insert the value.

◆ NS_DESIGNATED_INITIALIZER [1/2]

- (instancetype) NS_DESIGNATED_INITIALIZER
Returns
A newly initialized and empty GPBBoolArray.

◆ NS_DESIGNATED_INITIALIZER [2/2]

- (instancetype) NS_DESIGNATED_INITIALIZER
Returns
A newly initialized and empty GPBBoolArray.

◆ removeAll [1/2]

- (void) removeAll

Removes all the values from this array.

◆ removeAll [2/2]

- (void) removeAll

Removes all the values from this array.

◆ removeValueAtIndex: [1/2]

- (void) removeValueAtIndex: (NSUInteger)  index

Removes the value at the given index.

Parameters
indexThe index of the value to remove.

◆ removeValueAtIndex: [2/2]

- (void) removeValueAtIndex: (NSUInteger)  index

Removes the value at the given index.

Parameters
indexThe index of the value to remove.

◆ replaceValueAtIndex:withValue: [1/2]

- (void) replaceValueAtIndex: (NSUInteger)  index
withValue: (BOOL value 

Replaces the value at the given index with the given value.

Parameters
indexThe index for which to replace the value.
valueThe value to replace with.

◆ replaceValueAtIndex:withValue: [2/2]

- (void) replaceValueAtIndex: (NSUInteger)  index
withValue: (BOOL value 

Replaces the value at the given index with the given value.

Parameters
indexThe index for which to replace the value.
valueThe value to replace with.

◆ valueAtIndex: [1/2]

- (BOOL) valueAtIndex: (NSUInteger)  index

Gets the value at the given index.

Parameters
indexThe index of the value to get.
Returns
The value at the given index.

◆ valueAtIndex: [2/2]

- (BOOL) valueAtIndex: (NSUInteger)  index

Gets the value at the given index.

Parameters
indexThe index of the value to get.
Returns
The value at the given index.

Member Data Documentation

◆ _autocreator

- (package GPB_UNSAFE_UNRETAINED GPBMessage *) _autocreator
protected

Property Documentation

◆ count

- (NSUInteger) count
readnonatomicassign

The number of elements contained in the array.

Definition at line 1083 of file bloaty/third_party/protobuf/objectivec/GPBArray.h.


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


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