Public Member Functions | Private Attributes
karto::ListIterator< T > Class Template Reference

#include <List.h>

List of all members.

Public Member Functions

void Erase ()
virtual kt_bool HasNext () const
 ListIterator (List< T > *pList)
virtual TNext ()
virtual kt_bool operator!= (const ListIterator &rOther) const
virtual Toperator* () const
virtual const Toperator++ ()
virtual T operator++ (int)
virtual Toperator-> () const
virtual const ListIteratoroperator= (const ListIterator &rOther)

Private Attributes

kt_size_t m_Index
List< T > * m_pList

Detailed Description

template<class T>
class karto::ListIterator< T >

List iterator

Definition at line 647 of file List.h.


Constructor & Destructor Documentation

template<class T >
karto::ListIterator< T >::ListIterator ( List< T > *  pList) [inline]

Constructs an interator for the given list

Parameters:
pListlist to iterate over

Definition at line 654 of file List.h.


Member Function Documentation

template<class T >
void karto::ListIterator< T >::Erase ( ) [inline]

Deletes the item at the current index

Definition at line 691 of file List.h.

template<class T >
virtual kt_bool karto::ListIterator< T >::HasNext ( ) const [inline, virtual]

Whether this iterator has any more items

Returns:
true if this iterator has more items, false otherwise

Definition at line 668 of file List.h.

template<class T >
virtual T& karto::ListIterator< T >::Next ( ) [inline, virtual]

Current item in the iterator; iterator advances beyond item returned

Returns:
current item in the iterator

Definition at line 677 of file List.h.

template<class T >
virtual kt_bool karto::ListIterator< T >::operator!= ( const ListIterator< T > &  rOther) const [inline, virtual]

Inequality operator

Definition at line 762 of file List.h.

template<class T >
virtual T& karto::ListIterator< T >::operator* ( ) const [inline, virtual]

Gets current item; iterator does NOT advance

Returns:
current item

Definition at line 705 of file List.h.

template<class T >
virtual const T& karto::ListIterator< T >::operator++ ( ) [inline, virtual]

Advances iterator to the next item

Returns:
next item in the iterator beyond the current item

Definition at line 733 of file List.h.

template<class T >
virtual T karto::ListIterator< T >::operator++ ( int  ) [inline, virtual]

Current item in the iterator; iterator advances beyond item returned

Returns:
current item in the iterator

Definition at line 744 of file List.h.

template<class T >
virtual T* karto::ListIterator< T >::operator-> ( ) const [inline, virtual]

Gets current item; iterator does NOT advance

Returns:
current item

Definition at line 719 of file List.h.

template<class T >
virtual const ListIterator& karto::ListIterator< T >::operator= ( const ListIterator< T > &  rOther) [inline, virtual]

Assignment operator

Definition at line 752 of file List.h.


Member Data Documentation

template<class T >
kt_size_t karto::ListIterator< T >::m_Index [private]

Definition at line 774 of file List.h.

template<class T >
List<T>* karto::ListIterator< T >::m_pList [private]

Definition at line 773 of file List.h.


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


nav2d_karto
Author(s): Sebastian Kasperski
autogenerated on Sun Apr 2 2017 03:53:09