rpa::iota_iterator< Type > Class Template Reference

A kind of 'iota, a value behaving like an iterator. For tests. More...

#include <iota_iterator.h>

List of all members.

Public Types

typedef std::input_iterator_tag iterator_category
 Is incremented with the iterator.
typedef Type value_type
typedef ptrdiff_t difference_type
typedef Type * pointer
typedef Type & reference

Public Member Functions

 iota_iterator (const Type &val)
 Initial value returned when dereferencing the iterator.
const Type & operator * (void) const
iota_iteratoroperator++ (void)
 The next dereferencement of this iterator gives the next value.
bool operator!= (const iota_iterator &desi) const
 The iterators are identical if the values are.
bool operator== (const iota_iterator &desi) const
 The iterators are identical if the values are.

Private Attributes

Type _val


Detailed Description

template<class Type>
class rpa::iota_iterator< Type >

A kind of 'iota, a value behaving like an iterator. For tests.


Member Typedef Documentation

template<class Type>
typedef ptrdiff_t rpa::iota_iterator< Type >::difference_type

template<class Type>
typedef std::input_iterator_tag rpa::iota_iterator< Type >::iterator_category

Is incremented with the iterator.

template<class Type>
typedef Type* rpa::iota_iterator< Type >::pointer

template<class Type>
typedef Type& rpa::iota_iterator< Type >::reference

template<class Type>
typedef Type rpa::iota_iterator< Type >::value_type


Constructor & Destructor Documentation

template<class Type>
rpa::iota_iterator< Type >::iota_iterator ( const Type &  val  )  [inline]

Initial value returned when dereferencing the iterator.


Member Function Documentation

template<class Type>
const Type& rpa::iota_iterator< Type >::operator * ( void   )  const [inline]

template<class Type>
bool rpa::iota_iterator< Type >::operator!= ( const iota_iterator< Type > &  desi  )  const [inline]

The iterators are identical if the values are.

template<class Type>
iota_iterator& rpa::iota_iterator< Type >::operator++ ( void   )  [inline]

The next dereferencement of this iterator gives the next value.

template<class Type>
bool rpa::iota_iterator< Type >::operator== ( const iota_iterator< Type > &  desi  )  const [inline]

The iterators are identical if the values are.


Member Data Documentation

template<class Type>
Type rpa::iota_iterator< Type >::_val [private]


The documentation for this class was generated from the following file:
Generated on Tue Sep 25 10:20:38 2007 for rpa by  doxygen 1.4.7