Main   Namespaces   Classes   Hierarchy   Annotated   Files   Compound   Global   Pages  

ListIterator< T > Class Template Reference

Iterates over an instance of LinkedList. More...

#include <LinkedList.hpp>

Inheritance diagram for ListIterator< T >:
SafeBool< ListIterator< T > >

List of all members.

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

Detailed Description

template<typename T>
class ListIterator< T >

Iterates over an instance of LinkedList.

Definition at line 441 of file LinkedList.hpp.


Member Typedef Documentation

typedef void(SafeBool::* SafeBool< ListIterator< T > >::bool_type)() const [protected, inherited]

Definition at line 22 of file SafeBool.hpp.


Constructor & Destructor Documentation

template<typename T >
ListIterator< T >::ListIterator ( LinkedList< T > &  lst  )  [inline]

Definition at line 459 of file LinkedList.hpp.


Member Function Documentation

template<typename T >
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.

template<typename T >
T & ListIterator< T >::operator* (  )  [inline]

Definition at line 465 of file LinkedList.hpp.

References ListIterator< T >::m_current.

template<typename T >
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.


Friends And Related Function Documentation

template<typename T>
friend class LinkedList [friend]

Definition at line 455 of file LinkedList.hpp.


Member Data Documentation

template<typename T>
ListNode<T>* ListIterator< T >::m_current [private]

The documentation for this class was generated from the following file:


6 Jan 2011 Doxygen 1.6.3