Iterates over an instance of LinkedList. More...
#include <LinkedList.hpp>
Public Member Functions | |
ListIterator (LinkedList< T > &lst) | |
T & | operator* () |
ListIterator< T > & | operator++ () |
bool | boolean_test () const |
operator bool_type () const | |
Protected Types | |
typedef void(SafeBool::* | bool_type )() const |
Protected Member Functions | |
void | this_type_does_not_support_comparisons () const |
Private Attributes | |
ListNode< T > * | m_current |
Friends | |
class | LinkedList |
Iterates over an instance of LinkedList.
Definition at line 441 of file LinkedList.hpp.
typedef void(SafeBool::* SafeBool< ListIterator< T > >::bool_type)() const [protected, inherited] |
Definition at line 22 of file SafeBool.hpp.
ListIterator< T >::ListIterator | ( | LinkedList< T > & | lst | ) | [inline] |
Definition at line 459 of file LinkedList.hpp.
bool ListIterator< T >::boolean_test | ( | ) | const [inline] |
Definition at line 478 of file LinkedList.hpp.
References ListIterator< T >::m_current.
SafeBool< ListIterator< T > >::operator bool_type | ( | ) | const [inline, inherited] |
Definition at line 26 of file SafeBool.hpp.
T & ListIterator< T >::operator* | ( | ) | [inline] |
Definition at line 465 of file LinkedList.hpp.
References ListIterator< T >::m_current.
ListIterator< T > & ListIterator< T >::operator++ | ( | ) | [inline] |
Definition at line 471 of file LinkedList.hpp.
References ListIterator< T >::m_current.
void SafeBool< ListIterator< T > >::this_type_does_not_support_comparisons | ( | ) | const [inline, protected, inherited] |
Definition at line 23 of file SafeBool.hpp.
friend class LinkedList [friend] |
Definition at line 455 of file LinkedList.hpp.
ListNode<T>* ListIterator< T >::m_current [private] |
Definition at line 453 of file LinkedList.hpp.
Referenced by ListIterator< T >::boolean_test(), ListIterator< T >::operator*(), and ListIterator< T >::operator++().