14 template <
typename VAL_T>
23 template <
typename VAL_T>
53 template <
typename VAL_T>
57 LinkedList(): head(NULL), tail(NULL), last_ptr(NULL) { }
79 tail = &new_node->next;
bool operator!=(NodeIterator< VAL_T > const &it)
Comparison between two iterators.
Definition: LinkedList.h:46
Definition: LinkedList.h:24
bool isEmpty()
Tell whether the linked list is empty.
Definition: LinkedList.h:85
VAL_T operator*()
Dereference the iterator to obtain the value it points at.
Definition: LinkedList.h:30
void operator++()
Prefix increment operator.
Definition: LinkedList.h:39
Definition: LinkedList.h:15
NodeIterator< VAL_T > begin()
An iterator pointing at the beginning of the linked list.
Definition: LinkedList.h:91
Definition: LinkedList.h:54
NodeIterator< VAL_T > end()
An iterator pointing at the end of the linked list.
Definition: LinkedList.h:96
NodeIterator< VAL_T > last()
An iterator pointing at the last node.
Definition: LinkedList.h:100
void append(VAL_T const &v)
Append an element.
Definition: LinkedList.h:70