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 ()
 Note: HasNext() must be true before calling Next() Advances the iterator to the next element of the collection.
T & Current ()
 Note: HasNext() must be true before calling Current().
bool HasNext ()
 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]

References REX.

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

Copy constructor.

References REX.


Member Function Documentation

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

Note: HasNext() must be true before calling Next() Advances the iterator to the next element of the collection.

References REX.

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

Note: HasNext() must be true before calling Current().

Returns:
the current element in the collection

References REX.

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 iterator is no longer valid.

References REX.

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

Assignment operator.

References REX.


© 2002-2010 PDFTron Systems Inc.