FMLiveSwitchLinkedList Class Reference

A linked list. More...

Instance Methods

(FMLiveSwitchLinkedListNode< T > *) - addBeforeNode:value:
 Adds an item before a node. More...
 
(FMLiveSwitchLinkedListNode< T > *) - addFirst:
 Adds an item to the beginning of the linked list. More...
 
(FMLiveSwitchLinkedListNode< T > *) - addLast:
 Adds an item to the end of the linked list. More...
 
(void) - clear
 Clears all nodes from the linked list. More...
 
(int) - count
 Gets the number of items in this linked list. More...
 
(FMLiveSwitchLinkedListNode< T > *) - first
 Gets the first node in the linked list. More...
 
(FMLiveSwitchLinkedListEnumerator< T > *) - getEnumerator
 Gets the enumerator for this linked list. More...
 
(instancetype) - init
 
(FMLiveSwitchLinkedListNode< T > *) - last
 Gets the last node in the linked list. More...
 
(bool) - remove:
 Removes an item from the linked list. More...
 
(bool) - removeFirst
 Removes the first item in the linked list. More...
 
(bool) - removeLast
 Removes the last item in the linked list. More...
 
(bool) - removeNode:
 Removes a specific node from the linked list. More...
 
(NSMutableArray< T > *) - toList
 Returns the linked list as a regular list. More...
 

Class Methods

(FMLiveSwitchLinkedList *) + linkedList
 

Protected Attributes

 __pad0__: NSObject- (FMLiveSwitchLinkedListNode<T>*) addAfterNode:(FMLiveSwitchLinkedListNode<T>*)node value:(T)value
 

Detailed Description

A linked list.

Method Documentation

◆ addBeforeNode:value:

- (FMLiveSwitchLinkedListNode<T>*) addBeforeNode: (FMLiveSwitchLinkedListNode< T > *)  node
value: (T)  value 

Adds an item before a node.

Parameters
nodeThe node before which to add the value.
valueThe value.

◆ addFirst:

- (FMLiveSwitchLinkedListNode<T>*) addFirst: (T)  value

Adds an item to the beginning of the linked list.

Parameters
valueThe value.

◆ addLast:

- (FMLiveSwitchLinkedListNode<T>*) addLast: (T)  value

Adds an item to the end of the linked list.

Parameters
valueThe value.

◆ clear

- (void) clear

Clears all nodes from the linked list.

◆ count

- (int) count

Gets the number of items in this linked list.

◆ first

Gets the first node in the linked list.

◆ getEnumerator

- (FMLiveSwitchLinkedListEnumerator<T>*) getEnumerator

Gets the enumerator for this linked list.

◆ init

- (instancetype) init

◆ last

Gets the last node in the linked list.

◆ linkedList

+ (FMLiveSwitchLinkedList*) linkedList

◆ remove:

- (bool) remove: (T)  value

Removes an item from the linked list.

Parameters
valueThe value.

◆ removeFirst

- (bool) removeFirst

Removes the first item in the linked list.

◆ removeLast

- (bool) removeLast

Removes the last item in the linked list.

◆ removeNode:

- (bool) removeNode: (FMLiveSwitchLinkedListNode< T > *)  node

Removes a specific node from the linked list.

Parameters
nodeThe node.

◆ toList

- (NSMutableArray<T>*) toList

Returns the linked list as a regular list.

Member Data Documentation

◆ __pad0__

- __pad0__
protected