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

#include <List.h>

List of all members.

Public Member Functions

 ConstListIterator (const List< T > *pList)
virtual kt_bool HasNext () const
virtual const TNext ()
virtual kt_bool operator!= (const ConstListIterator &rOther) const
virtual const Toperator* () const
virtual const Toperator++ ()
virtual T operator++ (int)
virtual const Toperator-> () 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 522 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 [inline, virtual]

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 ( ) [inline, virtual]

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 [inline, virtual]

Inequality operator

Definition at line 624 of file List.h.

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

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++ ( ) [inline, virtual]

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  ) [inline, virtual]

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 [inline, virtual]

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) [inline, virtual]

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 Sun Apr 2 2017 04:05:24