LinkedList

LinkedList template

Members

Functions

clear
void clear()

Empties the LinkedList

contains
bool contains(T value)

Tests if the list contains a node with the specified value

getFirstNode
Node!T getFirstNode()
getLastNode
Node!T getLastNode()
insertAfter
Node!T insertAfter(T value, Node!T node)

Creates a node in the list placed after the specified node

insertBack
Node!T insertBack(T value)

Creates a node and places it at the end of the list

insertBefore
Node!T insertBefore(T value, Node!T node)

Creates a node in the list placed before the specified node

insertFront
Node!T insertFront(T value)

Creates a node and places it at the start of the list

remove
void remove(T value)

Removes the first node with the specified value

Properties

length
int length [@property getter]

Returns the node count

Meta