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

#include <List.h>

Public Member Functions

 ConstListIterator (const List< T > *pList)
 
virtual kt_bool HasNext () const
 
virtual const T & Next ()
 
virtual kt_bool operator!= (const ConstListIterator &rOther) const
 
virtual const T & operator* () const
 
virtual const T & operator++ ()
 
virtual T operator++ (int)
 
virtual const T * operator-> () const
 
virtual const ConstListIteratoroperator= (const ConstListIterator &rOther)
 

Private Attributes

kt_size_t m_Index
 
const List< T > * m_pList
 

Detailed Description

template<class T>
class karto::ConstListIterator< T >

Const List iterator

Definition at line 38 of file List.h.

Constructor & Destructor Documentation

template<class T >
karto::ConstListIterator< T >::ConstListIterator ( const List< T > *  pList)
inline

Constructs a const interator for the given list

Parameters
pListlist to iterate over

Definition at line 529 of file List.h.

Member Function Documentation

template<class T >
virtual kt_bool karto::ConstListIterator< T >::HasNext ( ) const
inlinevirtual

Whether this iterator has any more items

Returns
true if this iterator has more items, false otherwise

Definition at line 543 of file List.h.

template<class T >
virtual const T& karto::ConstListIterator< T >::Next ( )
inlinevirtual

Current item in the iterator; iterator advances beyond item returned

Returns
current item in the iterator

Definition at line 552 of file List.h.

template<class T >
virtual kt_bool karto::ConstListIterator< T >::operator!= ( const ConstListIterator< T > &  rOther) const
inlinevirtual

Inequality operator

Definition at line 624 of file List.h.

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

Gets current item; iterator does NOT advance

Returns
current item

Definition at line 567 of file List.h.

template<class T >
virtual const T& karto::ConstListIterator< T >::operator++ ( )
inlinevirtual

Advances iterator to the next item

Returns
next item in the iterator beyond the current item

Definition at line 595 of file List.h.

template<class T >
virtual T karto::ConstListIterator< T >::operator++ ( int  )
inlinevirtual

Current item in the iterator; iterator advances beyond item returned

Returns
current item in the iterator

Definition at line 606 of file List.h.

template<class T >
virtual const T* karto::ConstListIterator< T >::operator-> ( ) const
inlinevirtual

Gets current item; iterator does NOT advance

Returns
current item

Definition at line 581 of file List.h.

template<class T >
virtual const ConstListIterator& karto::ConstListIterator< T >::operator= ( const ConstListIterator< T > &  rOther)
inlinevirtual

Assignment operator

Definition at line 614 of file List.h.

Member Data Documentation

template<class T >
kt_size_t karto::ConstListIterator< T >::m_Index
private

Definition at line 636 of file List.h.

template<class T >
const List<T>* karto::ConstListIterator< T >::m_pList
private

Definition at line 635 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