hudson::count_iterator< T > Class Template Reference

#include <count_iterator.h>

List of all members.

Public Member Functions

 count_iterator ()
 count_iterator (size_t c)
ignore_assign operator * ()
void operator++ ()
 operator size_t () const

Public Attributes

size_t count

Classes

struct  ignore_assign

template<class T>
class hudson::count_iterator< T >


Constructor & Destructor Documentation

template<class T>
hudson::count_iterator< T >::count_iterator  )  [inline]
 

Create a new counter, initialized to zero.

template<class T>
hudson::count_iterator< T >::count_iterator size_t  c  )  [inline]
 

Create a new counter, initialized to c.


Member Function Documentation

template<class T>
ignore_assign hudson::count_iterator< T >::operator *  )  [inline]
 

No-op; just gets the types right.

template<class T>
hudson::count_iterator< T >::operator size_t  )  const [inline]
 

Implicit cast to size_t: returns the count.

template<class T>
void hudson::count_iterator< T >::operator++  )  [inline]
 

Increment the count.


Member Data Documentation

template<class T>
size_t hudson::count_iterator< T >::count
 

The count so far.


The documentation for this class was generated from the following file:
Generated on Thu Mar 27 19:04:16 2008 by  doxygen 1.4.6