Public Member Functions | Private Attributes | List of all members
karto::ListIterator< T > Class Template Reference

#include <List.h>

Public Member Functions

void Erase ()
 
virtual kt_bool HasNext () const
 
 ListIterator (List< T > *pList)
 
virtual T & Next ()
 
virtual kt_bool operator!= (const ListIterator &rOther) const
 
virtual T & operator* () const
 
virtual const T & operator++ ()
 
virtual T operator++ (int)
 
virtual T * operator-> () 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 41 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
inlinevirtual

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 ( )
inlinevirtual

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
inlinevirtual

Inequality operator

Definition at line 762 of file List.h.

template<class T >
virtual T& karto::ListIterator< T >::operator* ( ) const
inlinevirtual

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++ ( )
inlinevirtual

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  )
inlinevirtual

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
inlinevirtual

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)
inlinevirtual

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 Tue Nov 7 2017 06:02:36