2005/5/9

     
 

class TIterator

artefaktur
Modules   Namespace List   Class Hierarchy   Alphabetical List   Compound List   Namespace Members   Compound Members   Related Pages  

acdk::util::TIterator< T > Class Template Reference

#include <TIterator.h>

Inheritance diagram for acdk::util::TIterator< T >:

acdk::util::TAbstractListIterator< T > acdk::util::TDoubleIterator< T > acdk::util::TListIterator< T > acdk::util::TAbstractListListIterator< T > acdk::util::TAbstractListSubListListIterator< T > List of all members.

Detailed Description

template<class T>
class acdk::util::TIterator< T >

To walk through all elements of a collection an Iterator is used.

TIerator is typed version.

See also:
Java: http://java.sun.com/j2se/1.3/docs/api/java/util/Iterator.html
Author:
Roger Rene Kommer (mailto:kommer@artefaktur.com)
Version:
Revision
1.11
Date:
Date
2005/02/05 10:45:06


Public Types

typedef T RValueType
typedef TIterator< RValueTypeThisType
typedef InterfaceHolder< ThisTypeRefType
typedef T RElementType
typedef RElementType::Type ElementType

Public Member Functions

virtual bool hasNext ()=0
virtual RElementType next ()=0
virtual RElementType element ()=0
virtual void remove ()=0
 remove current element from the iterator.

bool hasMoreElements ()
 for java.util.Enumeration - compatibility

RElementType nextElement ()
 for java.util.Enumeration - compatibility


Member Typedef Documentation

template<class T>
typedef RElementType::Type acdk::util::TIterator< T >::ElementType
 

Reimplemented in acdk::util::TTreeMapSetEntryIterator< K, V >.

template<class T>
typedef InterfaceHolder<ThisType> acdk::util::TIterator< T >::RefType
 

Reimplemented in acdk::util::TAbstractListIterator< T >, acdk::util::TAbstractListListIterator< T >, acdk::util::TAbstractListSubListListIterator< T >, acdk::util::TDoubleIterator< T >, acdk::util::TListIterator< T >, acdk::util::TTreeMapValueIterator< K, V >, acdk::util::TTreeMapEntryIterator< K, V >, acdk::util::TTreeMapSetKeyIterator< K, V >, acdk::util::TTreeMapSetValueIterator< K, V >, and acdk::util::TTreeMapSetEntryIterator< K, V >.

template<class T>
typedef T acdk::util::TIterator< T >::RElementType
 

Reimplemented in acdk::util::TTreeMapSetKeyIterator< K, V >, acdk::util::TTreeMapSetValueIterator< K, V >, and acdk::util::TTreeMapSetEntryIterator< K, V >.

template<class T>
typedef T acdk::util::TIterator< T >::RValueType
 

Reimplemented in acdk::util::TAbstractListIterator< T >, acdk::util::TAbstractListListIterator< T >, acdk::util::TAbstractListSubListListIterator< T >, acdk::util::TAbstractMapCachedKeySetIterator< K, V >, acdk::util::TAbstractMapCachedValuesCollectionIterator< K, V >, acdk::util::TDoubleIterator< T >, acdk::util::THashMapKeyIterator< K, V >, acdk::util::THashMapValueIterator< K, V >, acdk::util::THashMapEntriesIterator< K, V >, acdk::util::TListIterator< T >, acdk::util::TTreeMapKeyIterator< K, V >, acdk::util::TTreeMapValueIterator< K, V >, acdk::util::TTreeMapEntryIterator< K, V >, acdk::util::TTreeMapSetKeyIterator< K, V >, acdk::util::TTreeMapSetValueIterator< K, V >, and acdk::util::TTreeMapSetEntryIterator< K, V >.

template<class T>
typedef TIterator<RValueType> acdk::util::TIterator< T >::ThisType
 

Reimplemented in acdk::util::TTreeMapKeyIterator< K, V >, acdk::util::TTreeMapValueIterator< K, V >, acdk::util::TTreeMapEntryIterator< K, V >, acdk::util::TTreeMapSetKeyIterator< K, V >, acdk::util::TTreeMapSetValueIterator< K, V >, and acdk::util::TTreeMapSetEntryIterator< K, V >.


Member Function Documentation

template<class T>
virtual RElementType acdk::util::TIterator< T >::element  )  [pure virtual]
 

Implemented in acdk::util::TAbstractListIterator< T >, acdk::util::TAbstractListListIterator< T >, acdk::util::TAbstractListSubListListIterator< T >, acdk::util::TAbstractMapCachedKeySetIterator< K, V >, acdk::util::TAbstractMapCachedValuesCollectionIterator< K, V >, acdk::util::TDoubleIterator< T >, acdk::util::THashMapKeyIterator< K, V >, acdk::util::THashMapValueIterator< K, V >, acdk::util::THashMapEntriesIterator< K, V >, acdk::util::TListIterator< T >, acdk::util::TTreeMapKeyIterator< K, V >, acdk::util::TTreeMapValueIterator< K, V >, acdk::util::TTreeMapEntryIterator< K, V >, acdk::util::TTreeMapSetKeyIterator< K, V >, acdk::util::TTreeMapSetValueIterator< K, V >, and acdk::util::TTreeMapSetEntryIterator< K, V >.

template<class T>
bool acdk::util::TIterator< T >::hasMoreElements  )  [inline]
 

for java.util.Enumeration - compatibility

template<class T>
virtual bool acdk::util::TIterator< T >::hasNext  )  [pure virtual]
 

Implemented in acdk::util::TAbstractListIterator< T >, acdk::util::TAbstractListListIterator< T >, acdk::util::TAbstractListSubListListIterator< T >, acdk::util::TAbstractMapCachedKeySetIterator< K, V >, acdk::util::TAbstractMapCachedValuesCollectionIterator< K, V >, acdk::util::TDoubleIterator< T >, acdk::util::THashMapKeyIterator< K, V >, acdk::util::THashMapValueIterator< K, V >, acdk::util::THashMapEntriesIterator< K, V >, acdk::util::TListIterator< T >, acdk::util::TTreeMapKeyIterator< K, V >, acdk::util::TTreeMapValueIterator< K, V >, acdk::util::TTreeMapEntryIterator< K, V >, acdk::util::TTreeMapSetKeyIterator< K, V >, acdk::util::TTreeMapSetValueIterator< K, V >, and acdk::util::TTreeMapSetEntryIterator< K, V >.

template<class T>
virtual RElementType acdk::util::TIterator< T >::next  )  [pure virtual]
 

Implemented in acdk::util::TAbstractListIterator< T >, acdk::util::TAbstractListListIterator< T >, acdk::util::TAbstractListSubListListIterator< T >, acdk::util::TAbstractMapCachedKeySetIterator< K, V >, acdk::util::TAbstractMapCachedValuesCollectionIterator< K, V >, acdk::util::TDoubleIterator< T >, acdk::util::THashMapKeyIterator< K, V >, acdk::util::THashMapValueIterator< K, V >, acdk::util::THashMapEntriesIterator< K, V >, acdk::util::TListIterator< T >, acdk::util::TTreeMapKeyIterator< K, V >, acdk::util::TTreeMapValueIterator< K, V >, acdk::util::TTreeMapEntryIterator< K, V >, acdk::util::TTreeMapSetKeyIterator< K, V >, acdk::util::TTreeMapSetValueIterator< K, V >, and acdk::util::TTreeMapSetEntryIterator< K, V >.

template<class T>
RElementType acdk::util::TIterator< T >::nextElement  )  [inline]
 

for java.util.Enumeration - compatibility

template<class T>
virtual void acdk::util::TIterator< T >::remove  )  [pure virtual]
 

remove current element from the iterator.

May not support by all Iterator

Implemented in acdk::util::TAbstractListIterator< T >, acdk::util::TAbstractListListIterator< T >, acdk::util::TAbstractListSubListListIterator< T >, acdk::util::TAbstractMapCachedKeySetIterator< K, V >, acdk::util::TAbstractMapCachedValuesCollectionIterator< K, V >, acdk::util::TDoubleIterator< T >, acdk::util::THashMapKeyIterator< K, V >, acdk::util::THashMapValueIterator< K, V >, acdk::util::THashMapEntriesIterator< K, V >, acdk::util::TListIterator< T >, acdk::util::TTreeMapKeyIterator< K, V >, acdk::util::TTreeMapValueIterator< K, V >, acdk::util::TTreeMapEntryIterator< K, V >, acdk::util::TTreeMapSetKeyIterator< K, V >, acdk::util::TTreeMapSetValueIterator< K, V >, and acdk::util::TTreeMapSetEntryIterator< K, V >.