fm.liveswitch.LinkedListEnumerator< T > Class Template Reference

A linked list enumerator. More...

Public Member Functions

getCurrent ()
 Gets the current value. More...
 
fm.liveswitch.LinkedListNode< T > getCurrentNode ()
 Gets the current node. More...
 
 LinkedListEnumerator (fm.liveswitch.LinkedListNode< T > root)
 Initializes a new instance of the fm.liveswitch.LinkedListEnumerator class. More...
 
boolean moveNext ()
 Moves to the next node. More...
 
void reset ()
 Resets this instance. More...
 

Detailed Description

A linked list enumerator.

Constructor & Destructor Documentation

◆ LinkedListEnumerator()

Initializes a new instance of the fm.liveswitch.LinkedListEnumerator class.

Parameters
rootThe root node.

Member Function Documentation

◆ getCurrent()

T fm.liveswitch.LinkedListEnumerator< T >.getCurrent ( )

Gets the current value.

◆ getCurrentNode()

Gets the current node.

◆ moveNext()

boolean fm.liveswitch.LinkedListEnumerator< T >.moveNext ( )

Moves to the next node.

◆ reset()

Resets this instance.