<<<<<<< HEAD
<<<<<<< HEAD
<<<<<<< HEAD
Go to the documentation of this file. 7 #ifndef AULA1_ITERATOR_HPP 8 #define AULA1_ITERATOR_HPP 31 return firstRun
and node != NULL
or node->getNext() != NULL;
37 return node->getPrevious() != NULL;
45 return node->getValue();
48 node = node->getNext();
49 return node->getValue();
55 node = node->getNext();
56 return node->getValue();
62 return node->getValue();
T next()
Go to the next value.
T previous()
Go to the previous value.
bool hasNext()
Returns whether the iterator has a next value to explore.
T current()
Get the current value the iterator holds.
bool hasPrevious()
Returns whether the iterator has a previous value to explore.
Iterator(Node< T > *n)
Creates an iterator.
=======
=======
>>>>>>> bded2143692dca559ffcc9e7202d9eb5fbfc45bf
=======
>>>>>>> master
Go to the documentation of this file. 7 #ifndef AULA1_ITERATOR_HPP 8 #define AULA1_ITERATOR_HPP 30 return firstRun
and node != NULL
or node->getNext() != NULL;
36 return node->getPrevious() != NULL;
44 return node->getValue();
48 return node->getValue();
55 return node->getValue();
61 return node->getValue();
Node used inside other data structures.
T next()
Go to the next value.
T previous()
Go to the previous value.
bool hasNext()
Returns whether the iterator has a next value to explore.
T current()
Get the current value the iterator holds.
Object that provides iterative powers to classes composed of Node.
bool hasPrevious()
Returns whether the iterator has a previous value to explore.
Iterator(Node< T > *n)
Creates an iterator.
<<<<<<< HEAD
<<<<<<< HEAD
>>>>>>> 36f9b37... fixed dependency of ProtectedLinkedList to Iterator
=======
>>>>>>> bded2143692dca559ffcc9e7202d9eb5fbfc45bf
=======
>>>>>>> master