Go to the documentation of this file.
18 #ifndef __LIBSTD_LISTITERATOR_H
19 #define __LIBSTD_LISTITERATOR_H
175 virtual void operator++(int num)
virtual T & next()
Fetch the next item.
virtual bool remove()
Remove the current item from the List.
class List< T >::Node * m_current
Current node.
Abstracts an iteration process.
ListIterator(const List< T > &list)
Constant class constructor.
virtual T & current()
Get current item in the List.
virtual const T & current() const
Get current item in the List.
virtual bool hasCurrent() const
Check if there is a current item on the List.
ListIterator(List< T > &list)
Class constructor.
virtual bool hasNext() const
Check if there is more on the List to iterate.
ListIterator(List< T > *list)
Class constructor.
virtual void reset()
Reset the iterator.
Simple linked list template class.
List< T > & m_list
Points to the List to iterate.
class List< T >::Node * m_next
Next node.