pdftron::Common::Iterator< T > Class Template Reference

Supports a simple iteration over a generic collection. More...

#include <Iterator.h>

List of all members.

Public Member Functions

 Iterator ()
 ~Iterator ()
void Next ()
 Advances the iterator to the next element of the collection.
T & Current ()
 
Returns:
the current element in the collection

bool HasNext ()
 
Returns:
true if the iterator can be successfully advanced to the next element; false if the end collection is reached.

 Iterator (const Iterator &c)
 Copy constructor.
Iterator< T > & operator= (const Iterator< T > &other)
 Assignment operator.


Detailed Description

template<class T>
class pdftron::Common::Iterator< T >

Supports a simple iteration over a generic collection.

Constructor & Destructor Documentation

template<class T>
pdftron::Common::Iterator< T >::Iterator (  )  [inline]

template<class T>
pdftron::Common::Iterator< T >::~Iterator (  )  [inline]

template<class T>
pdftron::Common::Iterator< T >::Iterator ( const Iterator< T > &  c  )  [inline]

Copy constructor.


Member Function Documentation

template<class T>
void pdftron::Common::Iterator< T >::Next (  )  [inline]

Advances the iterator to the next element of the collection.

template<class T>
T& pdftron::Common::Iterator< T >::Current (  )  [inline]

Returns:
the current element in the collection

template<class T>
bool pdftron::Common::Iterator< T >::HasNext (  )  [inline]

Returns:
true if the iterator can be successfully advanced to the next element; false if the end collection is reached.

template<class T>
Iterator<T>& pdftron::Common::Iterator< T >::operator= ( const Iterator< T > &  other  )  [inline]

Assignment operator.


© 2002-2008 PDFTron Systems Inc.