FMLiveSwitchFrequentReadSynchronizedList Class Reference

Synchronized List for inserts/removes. More...

Instance Methods

(void) - clear
 Clears the list. More...
 
(long long) - count
 Gets the count of items in the list. More...
 
(NSMutableArray *) - getArrayWithCount:
 Gets an array of a given type of a given length. More...
 
(instancetype) - init
 Creates an instance of a FMLiveSwitchFrequentReadSynchronizedList`1. More...
 
(instancetype) - initWithLockObject:
 Creates an instance of a FMLiveSwitchFrequentReadSynchronizedList`1. More...
 
(void) - insertWithIndex:value:
 Synchronized insert into collection at a given index. More...
 
(void) - remove:
 Synchronized remove from collection. More...
 
(void) - removeAtWithIndex:
 Synchronized remove from collection at a specified index. More...
 
(NSMutableArray *) - values
 Gets the values in the collection not subject to synchronization and Concurrent Modification/Access issues. More...
 

Class Methods

(FMLiveSwitchFrequentReadSynchronizedList *) + frequentReadSynchronizedList
 Creates an instance of a FMLiveSwitchFrequentReadSynchronizedList`1. More...
 
(FMLiveSwitchFrequentReadSynchronizedList *) + frequentReadSynchronizedListWithLockObject:
 Creates an instance of a FMLiveSwitchFrequentReadSynchronizedList`1. More...
 

Protected Attributes

 __pad0__: NSObject- (void) add:(T)value
 

Detailed Description

Synchronized List for inserts/removes.

Unsynchronized for reads. Optimized for frequent reads relative to writes.

Method Documentation

◆ clear

- (void) clear

Clears the list.

◆ count

- (long long) count

Gets the count of items in the list.

◆ frequentReadSynchronizedList

+ (FMLiveSwitchFrequentReadSynchronizedList*) frequentReadSynchronizedList

Creates an instance of a FMLiveSwitchFrequentReadSynchronizedList`1.

◆ frequentReadSynchronizedListWithLockObject:

+ (FMLiveSwitchFrequentReadSynchronizedList*) frequentReadSynchronizedListWithLockObject: (id lockObject

Creates an instance of a FMLiveSwitchFrequentReadSynchronizedList`1.

Parameters
lockObjectSynchronization object.

◆ getArrayWithCount:

- (NSMutableArray*) getArrayWithCount: (int)  count

Gets an array of a given type of a given length.

Parameters
countThe count.

Implemented in FMLiveSwitchIceCandidateSynchronizedList, and FMLiveSwitchIceCandidatePairSynchronizedList.

◆ init

- (instancetype) init

Creates an instance of a FMLiveSwitchFrequentReadSynchronizedList`1.

◆ initWithLockObject:

- (instancetype) initWithLockObject: (id lockObject

Creates an instance of a FMLiveSwitchFrequentReadSynchronizedList`1.

Parameters
lockObjectSynchronization object.

◆ insertWithIndex:value:

- (void) insertWithIndex: (int)  index
value: (T)  value 

Synchronized insert into collection at a given index.

Parameters
valueValue
indexIndex

◆ remove:

- (void) remove: (T)  value

Synchronized remove from collection.

Parameters
valueValue

◆ removeAtWithIndex:

- (void) removeAtWithIndex: (int)  index

Synchronized remove from collection at a specified index.

Parameters
indexIndex

◆ values

- (NSMutableArray*) values

Gets the values in the collection not subject to synchronization and Concurrent Modification/Access issues.

May be missing newly added or removed values.

Member Data Documentation

◆ __pad0__

- __pad0__
protected