/ fm / liveswitch / LinkedListEnumerator
Class: LinkedListEnumerator<T>
fm.liveswitch.LinkedListEnumerator
A linked list enumerator.
Type parameters
Name |
---|
T |
Table of contents
Constructors
Methods
Constructors
constructor
+ new LinkedListEnumerator<T>(root
: LinkedListNode<T>): LinkedListEnumerator<T>
Initializes a new instance of the [[fm.liveswitch.linkedListEnumerator]] class.
Type parameters:
Name |
---|
T |
Parameters:
Name | Type | Description |
---|---|---|
root |
LinkedListNode<T> | The root node. |
Returns: LinkedListEnumerator<T>
Defined in: Generated/TypeScript/fm.liveswitch/LinkedListEnumerator.ts:22
Methods
fmliveswitchLinkedListEnumeratorInit
▸ Private
fmliveswitchLinkedListEnumeratorInit(): void
Returns: void
Defined in: Generated/TypeScript/fm.liveswitch/LinkedListEnumerator.ts:19
getCurrent
▸ getCurrent(): T
Gets the current value.
Returns: T
Defined in: Generated/TypeScript/fm.liveswitch/LinkedListEnumerator.ts:48
getCurrentNode
▸ getCurrentNode(): LinkedListNode<T>
Gets the current node.
Returns: LinkedListNode<T>
Defined in: Generated/TypeScript/fm.liveswitch/LinkedListEnumerator.ts:60
getTypeString
▸ getTypeString(): string
Returns: string
Defined in: Generated/TypeScript/fm.liveswitch/LinkedListEnumerator.ts:9
moveNext
▸ moveNext(): boolean
Moves to the next node.
Returns: boolean
Defined in: Generated/TypeScript/fm.liveswitch/LinkedListEnumerator.ts:72
reset
▸ reset(): void
Resets this instance.
Returns: void
Defined in: Generated/TypeScript/fm.liveswitch/LinkedListEnumerator.ts:90